diff --git a/test/parallel/test-http2-respond-file-fd-invalid.js b/test/parallel/test-http2-respond-file-fd-invalid.js index 21fcf790b449eb..7630b93bc63942 100644 --- a/test/parallel/test-http2-respond-file-fd-invalid.js +++ b/test/parallel/test-http2-respond-file-fd-invalid.js @@ -25,7 +25,7 @@ server.on('stream', (stream) => { // Get first known bad file descriptor. try { while (fs.fstatSync(++fd)); - } catch (e) { + } catch { // do nothing; we now have an invalid fd }