test: fix var redeclarations in test-fs-*

PR-URL: https://github.com/nodejs/node/pull/4986
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>
This commit is contained in:
Rich Trott 2016-01-30 20:32:27 -08:00 committed by Roman Klauke
parent 5f44475b5a
commit 754bcff73e
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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;