Skip to content

Commit

Permalink
test(cases): remove unnecessary try/catch wrapper to fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Nov 3, 2019
1 parent 00620df commit ca8175e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/cases/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ const htmlCases = require('./html');
* @return {String} - The file text.
*/
function read(filepath) {
try {
return fs.readFileSync(path.join(__dirname, filepath), 'utf8');
} catch (error) {
throw error;
}
return fs.readFileSync(path.join(__dirname, filepath), 'utf8');
}

const html = [
Expand Down

0 comments on commit ca8175e

Please sign in to comment.