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:
+2
-2
@@ -11,9 +11,9 @@ import { CONFIG_MODES, getConfig } from './commands/config';
|
|||||||
|
|
||||||
const config = getConfig();
|
const config = getConfig();
|
||||||
|
|
||||||
let apiKey = config?.OPENAI_API_KEY;
|
|
||||||
let basePath = config?.OPENAI_BASE_PATH;
|
|
||||||
let maxTokens = config?.OPENAI_MAX_TOKENS;
|
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);
|
const [command, mode] = process.argv.slice(2);
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ export const prepareCommitMessageHook = async (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log({ commitSource });
|
||||||
|
|
||||||
if (commitSource) return;
|
if (commitSource) return;
|
||||||
|
|
||||||
if (isStageAllFlag) {
|
if (isStageAllFlag) {
|
||||||
|
|||||||
Reference in New Issue
Block a user