From b6835ee093a52ab695e82e330f914cc1a36f1d91 Mon Sep 17 00:00:00 2001 From: typicode Date: Tue, 2 Jul 2019 17:31:42 +0200 Subject: [PATCH] remove redundant code --- src/runner/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runner/index.ts b/src/runner/index.ts index 415d5ce0d..62f2775ec 100644 --- a/src/runner/index.ts +++ b/src/runner/index.ts @@ -63,7 +63,6 @@ export default async function run( if (command) { console.log(`husky > ${hookName} (node ${process.version})`) execa.shellSync(command, { cwd, env, stdio: 'inherit' }) - return 0 } if (oldCommand) { @@ -82,7 +81,6 @@ export default async function run( console.log() console.log(`husky > ${hookName} (node ${process.version})`) execa.shellSync(oldCommand, { cwd, env, stdio: 'inherit' }) - return 0 } return 0