From f48ce24d2b5603e724bfbbf0af5d90cc732c5833 Mon Sep 17 00:00:00 2001 From: "Micael Levi L. Cavalcante" Date: Wed, 3 Jul 2024 12:38:04 -0400 Subject: [PATCH] refactor: remove redundand try-catch block --- actions/build.action.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/actions/build.action.ts b/actions/build.action.ts index 33a96c038..bfb4eb600 100644 --- a/actions/build.action.ts +++ b/actions/build.action.ts @@ -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); } }