mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Code lint of new features
This commit is contained in:
parent
91be57cbce
commit
f4cb577cb4
1
index.js
1
index.js
@ -111,6 +111,7 @@ Sharp.prototype.crop = function(gravity) {
|
||||
};
|
||||
|
||||
Sharp.prototype.extract = function(topOffset, leftOffset, width, height) {
|
||||
/*jslint unused: false */
|
||||
var suffix = this.options.width === -1 && this.options.height === -1 ? 'Pre' : 'Post';
|
||||
var values = arguments;
|
||||
['topOffset', 'leftOffset', 'width', 'height'].forEach(function(name, index) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user