diff options
author | Rich Trott <rtrott@gmail.com> | 2016-01-30 21:46:45 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-02-02 12:48:08 -0800 |
commit | 8d61787f177e3002b87227d71f0b9707c7bb73d6 (patch) | |
tree | 56ef211648c11f4585a76882e2413e9d85d8acbc /test/parallel/test-repl-persistent-history.js | |
parent | 415625c2a50eb8067e89df0e87c24fb8228f34d4 (diff) | |
download | android-node-v8-8d61787f177e3002b87227d71f0b9707c7bb73d6.tar.gz android-node-v8-8d61787f177e3002b87227d71f0b9707c7bb73d6.tar.bz2 android-node-v8-8d61787f177e3002b87227d71f0b9707c7bb73d6.zip |
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>
Diffstat (limited to 'test/parallel/test-repl-persistent-history.js')
-rw-r--r-- | test/parallel/test-repl-persistent-history.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/parallel/test-repl-persistent-history.js b/test/parallel/test-repl-persistent-history.js index 387cef7e97..e8b6d416f0 100644 --- a/test/parallel/test-repl-persistent-history.js +++ b/test/parallel/test-repl-persistent-history.js @@ -272,11 +272,7 @@ function runTest(assertCleaned) { }); function onClose() { - if (after) { - var cleaned = after(); - } else { - var cleaned = cleanupTmpFile(); - } + const cleaned = after ? after() : cleanupTmpFile(); try { // Ensure everything that we expected was output |