mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Linter: apply all recommended biome settings
Enforces previously-skipped useArrowFunction check
This commit is contained in:
@@ -12,6 +12,10 @@ require('./sharp');
|
||||
// Use NODE_DEBUG=sharp to enable libvips warnings
|
||||
const debuglog = util.debuglog('sharp');
|
||||
|
||||
const queueListener = (queueLength) => {
|
||||
Sharp.queue.emit('change', queueLength);
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructor factory to create an instance of `sharp`, to which further methods are chained.
|
||||
*
|
||||
@@ -398,9 +402,7 @@ const Sharp = function (input, options) {
|
||||
debuglog(warning);
|
||||
},
|
||||
// Function to notify of queue length changes
|
||||
queueListener: function (queueLength) {
|
||||
Sharp.queue.emit('change', queueLength);
|
||||
}
|
||||
queueListener
|
||||
};
|
||||
this.options.input = this._createInputDescriptor(input, options, { allowStream: true });
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user