Skip to content

Commit ce11088

Browse files
Trotttargos
authored andcommitted
test: simplify forEach() usage
Use an array literal instead of using split() on a very short string. PR-URL: #30712 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 804e6e4 commit ce11088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sequential/test-http-max-http-headers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function once(cb) {
2525
}
2626

2727
function finished(client, callback) {
28-
'abort error end'.split(' ').forEach((e) => {
28+
['abort', 'error', 'end'].forEach((e) => {
2929
client.on(e, once(() => setImmediate(callback)));
3030
});
3131
}

0 commit comments

Comments
 (0)