Skip to content

Commit 835bf13

Browse files
Trottrvagg
authored andcommitted
test: fix var redeclarations in test-fs-*
PR-URL: #4986 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Klauke <[email protected]>
1 parent 71d7a44 commit 835bf13

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/parallel/test-fs-utimes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function stat_resource(resource) {
1818
}
1919

2020
function check_mtime(resource, mtime) {
21-
var mtime = fs._toUnixTimestamp(mtime);
21+
mtime = fs._toUnixTimestamp(mtime);
2222
var stats = stat_resource(resource);
2323
var real_mtime = fs._toUnixTimestamp(stats.mtime);
2424
// check up to single-second precision

test/parallel/test-fs-write-file.js

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ fs.writeFile(filename3, n, { mode: m }, function(e) {
7171

7272
// test that writeFile accepts file descriptors
7373
var filename4 = join(common.tmpDir, 'test4.txt');
74-
var buf = new Buffer(s, 'utf8');
7574

7675
fs.open(filename4, 'w+', function(e, fd) {
7776
if (e) throw e;

0 commit comments

Comments
 (0)