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:
di-sukharev
2023-05-19 13:46:33 +08:00
parent 8daa3ca130
commit 1cb8d580bb
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -17,6 +17,8 @@ export const prepareCommitMessageHook = async (
);
}
console.log({ commitSource });
if (commitSource) return;
if (isStageAllFlag) {