Skip to content

Commit a3f8a63

Browse files
committed
refactor: remove redundant fmt.Sprintf in user confirmation prompt
- Remove unnecessary `fmt.Sprintf` call in the user confirmation prompt for adding modified files to context. Signed-off-by: codiing-hui <wecoding@yeah.net>
1 parent 07cf516 commit a3f8a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ui/coders/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (c *CommandExecutor) coding(ctx context.Context, args ...string) error {
359359
}
360360

361361
if !found {
362-
if console.WaitForUserConfirm(console.Yes, fmt.Sprintf("Do you want to add modified file %s to context?", file)) {
362+
if console.WaitForUserConfirm(console.Yes, "Do you want to add modified file %s to context?", file) {
363363
if err := c.add(ctx, file); err != nil {
364364
console.RenderError(err, "Failed to add file %s to context", file)
365365
}

0 commit comments

Comments
 (0)