Code lint of new features

This commit is contained in:
Lovell Fuller 2014-10-17 12:26:53 +01:00
parent 91be57cbce
commit f4cb577cb4

View File

@ -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) {