Skip to content

Commit 095fb72

Browse files
committed
don't let the wizard invoke add when there are no files
1 parent 657ffa0 commit 095fb72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands/wizard.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ func Wizard(args []string) {
121121
filesToAdd = append(filesToAdd, file)
122122
}
123123

124-
Add(filesToAdd)
124+
if len(filesToAdd) > 0 {
125+
Add(filesToAdd)
126+
}
125127

126128
// show status
127129
fmt.Printf("🧙🪄 " + theme.ColorGreen + "Let me show the status!" + theme.ColorReset + "\n")

0 commit comments

Comments
 (0)