Skip to content

Commit 10f38fe

Browse files
committed
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

+1-5
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)