mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
refactor(api.ts): reorder variable declarations to improve readability and semantics
refactor(prepare-commit-msg-hook.ts): remove console.log statement used for debugging purposes
This commit is contained in:
@@ -11,9 +11,9 @@ import { CONFIG_MODES, getConfig } from './commands/config';
|
||||
|
||||
const config = getConfig();
|
||||
|
||||
let apiKey = config?.OPENAI_API_KEY;
|
||||
let basePath = config?.OPENAI_BASE_PATH;
|
||||
let maxTokens = config?.OPENAI_MAX_TOKENS;
|
||||
let basePath = config?.OPENAI_BASE_PATH;
|
||||
let apiKey = config?.OPENAI_API_KEY;
|
||||
|
||||
const [command, mode] = process.argv.slice(2);
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ export const prepareCommitMessageHook = async (
|
||||
);
|
||||
}
|
||||
|
||||
console.log({ commitSource });
|
||||
|
||||
if (commitSource) return;
|
||||
|
||||
if (isStageAllFlag) {
|
||||
|
||||
Reference in New Issue
Block a user