Skip to content

Commit

Permalink
improve compatibility with grunt 1.x.x by using indexOf() instead of …
Browse files Browse the repository at this point in the history
…deprecated grunt.util._
  • Loading branch information
mobilemind committed Apr 19, 2016
1 parent 51dddae commit 5f5360c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/zopfli.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function(grunt) {
zopfli.options.extension = zopfli.detectExtension(zopfli.options.mode);
}

if (grunt.util._.include(['gzip', 'zlib', 'deflate'], zopfli.options.mode) === false) {
if (['gzip', 'zlib', 'deflate'].indexOf(zopfli.options.mode) === -1) {
grunt.fail.warn('Mode ' + zopfli.options.mode + ' is not supported.');
}
promises.push(function(cb) {
Expand Down

0 comments on commit 5f5360c

Please sign in to comment.