Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add todo regarding destructuring
  • Loading branch information
kevva committed Jun 20, 2017
1 parent 413d304 commit c39ebb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/imagemin.js
Expand Up @@ -48,6 +48,7 @@ module.exports = grunt => {
const processFile = file => Promise.resolve(grunt.file.read(file.src[0], {encoding: null}))
.then(buf => Promise.all([imagemin.buffer(buf, {plugins}), buf]))
.then(res => {
// TODO: Use destructuring when targeting Node.js 6
const optimizedBuf = res[0];
const originalBuf = res[1];
const originalSize = originalBuf.length;
Expand Down

0 comments on commit c39ebb7

Please sign in to comment.