From 835bf13c1d7ee4d76a9afab4c2c3b539bbcf570e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 30 Jan 2016 20:32:27 -0800 Subject: [PATCH] test: fix var redeclarations in test-fs-* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/4986 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Roman Klauke --- test/parallel/test-fs-utimes.js | 2 +- test/parallel/test-fs-write-file.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-fs-utimes.js b/test/parallel/test-fs-utimes.js index 5d5cb40ec1eede..f245a7962da0f4 100644 --- a/test/parallel/test-fs-utimes.js +++ b/test/parallel/test-fs-utimes.js @@ -18,7 +18,7 @@ function stat_resource(resource) { } function check_mtime(resource, mtime) { - var mtime = fs._toUnixTimestamp(mtime); + mtime = fs._toUnixTimestamp(mtime); var stats = stat_resource(resource); var real_mtime = fs._toUnixTimestamp(stats.mtime); // check up to single-second precision diff --git a/test/parallel/test-fs-write-file.js b/test/parallel/test-fs-write-file.js index a29e841ea2f21e..14fb3e98acb626 100644 --- a/test/parallel/test-fs-write-file.js +++ b/test/parallel/test-fs-write-file.js @@ -71,7 +71,6 @@ fs.writeFile(filename3, n, { mode: m }, function(e) { // test that writeFile accepts file descriptors var filename4 = join(common.tmpDir, 'test4.txt'); -var buf = new Buffer(s, 'utf8'); fs.open(filename4, 'w+', function(e, fd) { if (e) throw e;