drop redundant 'utf8' argument to Buffer#toString
authorDan Allen <dan@opendevise.com>
Sun, 8 Oct 2017 01:48:55 +0000 (19:48 -0600)
committerDan Allen <dan@opendevise.com>
Sun, 8 Oct 2017 01:48:55 +0000 (19:48 -0600)
- utf8 is the default argument value, so there's no need to pass it

tasks/lib/gulp-prettier-eslint.js

index ae43eb1..667654b 100644 (file)
@@ -32,7 +32,7 @@ module.exports = () => {
       )
     }
 
-    const input = file.contents.toString('utf8')
+    const input = file.contents.toString()
     const output = prettierEslint({ text: input })
 
     if (input === output) {