test: fix variable redeclarations

I'm a fan of small changesets, but even I'm getting a little annoyed at
me for opening all these PRs weeding out variable redeclarations. So I'm
bundling a bunch of small changes here.

PR-URL: https://github.com/nodejs/node/pull/4992
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott authored and Myles Borins committed 2016-03-02 14:01:11 -08:00
1 parent 6c2d902c3d
commit 3733c032fc
9 files changed
+31 -32

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ function testBuf(encoding, buf) {
// write the whole buffer at once.
var res2 = '';
var s = new SD(encoding);
s = new SD(encoding);
res2 += s.write(buf);
res2 += s.end();