From 9a7022d594fb90cb30c4ad21f347dcabfa740037 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 14 Oct 2024 22:21:21 +0100 Subject: [PATCH] Update default check --- core/commands/slash/commit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/slash/commit.ts b/core/commands/slash/commit.ts index 648b76770..034e07e5e 100644 --- a/core/commands/slash/commit.ts +++ b/core/commands/slash/commit.ts @@ -5,7 +5,7 @@ const CommitMessageCommand: SlashCommand = { name: "commit", description: "Generate a commit message for current changes", run: async function* ({ ide, llm, params }) { - const includeUnstaged = params ? params.includeUnstaged : false; + const includeUnstaged = params?.includeUnstaged ?? false; const diff = await ide.getDiff(includeUnstaged); if (!diff || diff.trim() === "") {