diff --git a/coffee/lib/read-pipes.coffee b/coffee/lib/read-pipes.coffee index 60e62ff..47d24e1 100644 --- a/coffee/lib/read-pipes.coffee +++ b/coffee/lib/read-pipes.coffee @@ -28,7 +28,7 @@ module.exports = (dir, max_wait) -> result = {} for pipe in ['stdout', 'stderr', 'status'] - result[pipe] = fs.readFileSync dir + '/' + pipe, encoding: 'utf-8' + result[pipe] = fs.readFileSync dir + '/' + pipe, 'utf-8' read = true fs.unlinkSync dir + '/' + pipe diff --git a/js/lib/read-pipes.js b/js/lib/read-pipes.js index b239d4f..a3e2cc8 100644 --- a/js/lib/read-pipes.js +++ b/js/lib/read-pipes.js @@ -28,9 +28,7 @@ ref = ['stdout', 'stderr', 'status']; for (i = 0, len = ref.length; i < len; i++) { pipe = ref[i]; - result[pipe] = fs.readFileSync(dir + '/' + pipe, { - encoding: 'utf-8' - }); + result[pipe] = fs.readFileSync(dir + '/' + pipe, 'utf-8'); read = true; fs.unlinkSync(dir + '/' + pipe); }