Skip to content

Commit f48ce24

Browse files
committed
refactor: remove redundand try-catch block
1 parent b59436a commit f48ce24

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

actions/build.action.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,6 @@ export class BuildAction extends AbstractAction {
266266
if (!isWebpackFileAvailable && webpackPath === defaultPath) {
267267
return ({}) => ({});
268268
}
269-
270-
try {
271-
return require(pathToWebpackFile);
272-
} catch (err) {
273-
throw err;
274-
}
269+
return require(pathToWebpackFile);
275270
}
276271
}

0 commit comments

Comments
 (0)