Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
svishwanath-tw committed Jun 24, 2021
1 parent d96077d commit c3b71d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/checksum_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func NewChecksumCmd(fileNamePatterns []string) *ChecksumCmd {
}

func (s *ChecksumCmd) Run() int {
exitStatus := 1
wd, _ := os.Getwd()
repo := gitrepo.RepoLocatedAt(wd)
gitTrackedFilesAsAdditions := repo.TrackedFilesAsAdditions()
Expand All @@ -26,7 +25,7 @@ func (s *ChecksumCmd) Run() int {
rcSuggestion := cc.SuggestTalismanRC(s.fileNamePatterns)
if rcSuggestion != "" {
fmt.Print(rcSuggestion)
exitStatus = 0
return 0
}
return exitStatus
return 1
}

0 comments on commit c3b71d1

Please sign in to comment.