From 10f38fe2e0919265dbb219020107898dea5d37ca Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 22 Dec 2023 22:24:08 +0100 Subject: [PATCH] Removed useless try-catch - this doesn't do anything because we just rethrow the error --- test/support/helper.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/support/helper.js b/test/support/helper.js index 99671b8ff..cb2075d2f 100644 --- a/test/support/helper.js +++ b/test/support/helper.js @@ -29,9 +29,5 @@ assert.fileDoesNotExist = function(name) { }; assert.fileExists = function(name) { - try { - fs.statSync(name); - } catch(err) { - throw err; - } + fs.statSync(name); }; \ No newline at end of file