From 3ca9b9752f6ec69255c4802c20acc47a8e66f68b Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Fri, 10 Mar 2023 22:41:53 +0800 Subject: [PATCH] * fix(api.ts): add process.exit(1) to terminate the process if apiKey is not provided --- src/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api.ts b/src/api.ts index 10e14f5..6a15bc9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -20,6 +20,7 @@ if (!apiKey) { outro( 'For help Look into README https://github.com/di-sukharev/opencommit#setup' ); + process.exit(1); } // if (!apiKey) {