Skip to content

Commit

Permalink
refactor: remove redundand try-catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
micalevisk committed Jul 3, 2024
1 parent b59436a commit f48ce24
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions actions/build.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,6 @@ export class BuildAction extends AbstractAction {
if (!isWebpackFileAvailable && webpackPath === defaultPath) {
return ({}) => ({});
}

try {
return require(pathToWebpackFile);
} catch (err) {
throw err;
}
return require(pathToWebpackFile);
}
}

0 comments on commit f48ce24

Please sign in to comment.