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 <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
Paige Kato authored and MylesBorins committed Nov 29, 2018
1 parent f6e1acf commit 012d848
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 012d848

Please sign in to comment.