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 MylesBorins committed Oct 30, 2018
1 parent d7609a7 commit adff51f
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 adff51f

Please sign in to comment.