Skip to content

Commit

Permalink
fix (lib): blunder nil check in add.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tbhaxor committed Jul 12, 2022
1 parent e5ac919 commit 143d6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lib/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Add(hook string, cmd string) error {
// check if .git exists
if isExists, err := gitExists(); err == nil && !isExists {
return errors.New("git not initialized")
} else if err == nil {
} else if err != nil {
return err
}

Expand Down

0 comments on commit 143d6ae

Please # to comment.