Update default check

This commit is contained in:
George 2024-10-14 22:21:21 +01:00
parent 3b0493961b
commit 9a7022d594
No known key found for this signature in database
GPG key ID: D30164B91DE6EEE3

View file

@ -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() === "") {