Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 10f38fe

Browse files
committedDec 22, 2023
Removed useless try-catch
- this doesn't do anything because we just rethrow the error
1 parent 56ad63c commit 10f38fe

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎test/support/helper.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,5 @@ assert.fileDoesNotExist = function(name) {
2929
};
3030

3131
assert.fileExists = function(name) {
32-
try {
33-
fs.statSync(name);
34-
} catch(err) {
35-
throw err;
36-
}
32+
fs.statSync(name);
3733
};

0 commit comments

Comments
 (0)
Please sign in to comment.