Skip to content

Commit

Permalink
Removed useless try-catch
Browse files Browse the repository at this point in the history
- this doesn't do anything because we just rethrow the error
  • Loading branch information
daniellockyer committed Dec 22, 2023
1 parent 56ad63c commit 10f38fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/support/helper.js
Expand Up @@ -29,9 +29,5 @@ assert.fileDoesNotExist = function(name) {
};

assert.fileExists = function(name) {
try {
fs.statSync(name);
} catch(err) {
throw err;
}
fs.statSync(name);
};

0 comments on commit 10f38fe

Please sign in to comment.