Skip to content

Commit

Permalink
test: remove unused variable from catch
Browse files Browse the repository at this point in the history
PR-URL: #23477
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Paige Kato authored and jasnell committed Oct 17, 2018
1 parent e527321 commit b5c698d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-readline-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ function isWarned(emitter) {
});
try {
fi.emit('data', 'fooX');
} catch (e) { }
} catch { }
fi.emit('data', 'bar');
assert.strictEqual(keys.join(''), 'fooXbar');
rli.close();
Expand Down

0 comments on commit b5c698d

Please sign in to comment.