Skip to content

Commit 7a951f1

Browse files
committed
Fix the output messages when no staged files
1 parent f714763 commit 7a951f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func mainAction(c *cli.Context) error {
4040
fmt.Println()
4141
stagedFilesLen := len(stagedFiles)
4242
if stagedFilesLen == 0 {
43-
fmt.Println("No staged files.")
43+
fmt.Println(" No staged files.")
4444
}
4545
for i, file := range stagedFiles {
4646
fmt.Printf(" [%d]\t%v\t%v\n", i+1, file.Status, file.Path)
@@ -51,7 +51,7 @@ func mainAction(c *cli.Context) error {
5151
fmt.Println()
5252
unstagedFilesLen := len(unstagedFiles)
5353
if unstagedFilesLen == 0 {
54-
fmt.Println("No unstaged files.")
54+
fmt.Println(" No unstaged files.")
5555
}
5656
for i, file := range unstagedFiles {
5757
fmt.Printf(" [%d]\t%v\t%v\n", i+1+stagedFilesLen, file.Status, file.Path)

0 commit comments

Comments
 (0)