Skip to content

Commit

Permalink
test: fix var redeclarations in test-fs-*
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
Trott authored and rvagg committed Feb 8, 2016
1 parent 71d7a44 commit 835bf13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-utimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/parallel/test-fs-write-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 835bf13

Please sign in to comment.