Skip to content

Commit

Permalink
cmd: fixed to display dry-run outputs (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryosebach authored Sep 8, 2023
1 parent c9bfa38 commit 1f485c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (c *Command) Run() error {
if err != nil {
return err
}
if out.Message == "" {
if out.Message == "" && out.Files.ChangedCount() == 0 {
log.Print("No files will be changed.")
} else {
log.Print(out)
Expand Down

0 comments on commit 1f485c8

Please sign in to comment.