Skip to content

Commit 36d6071

Browse files
committed
refactor(fastcommit): replace strings.Join with log loop
1 parent 67db605 commit 36d6071

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmds/fastcommit/cmd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"os"
77
"sort"
8-
"strings"
98
"time"
109

1110
"github.com/briandowns/spinner"
@@ -73,7 +72,9 @@ func New(params Params) *Command {
7372
}
7473

7574
log.Info().Msg(utils.GetDetectedMessage(diff.Files))
76-
fmt.Println(strings.Join(diff.Files, "\n"))
75+
for _, file := range diff.Files {
76+
log.Info().Msg("file: " + file)
77+
}
7778

7879
s := spinner.New(spinner.CharSets[35], 100*time.Millisecond, func(s *spinner.Spinner) {
7980
s.Prefix = "generate git message: "

0 commit comments

Comments
 (0)