Skip to content

Commit

Permalink
Merge branch 'main' into #108
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 13, 2023
2 parents ac0e7ca + 3828cc4 commit cfe4090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ var commitCmd = &cobra.Command{
}
} else {
// compare last commit with index
isCommitNecessary, err := isCommitNecessary(client.Head.Commit)
isDiff, err := isCommitNecessary(client.Head.Commit)
if err != nil {
return fmt.Errorf("fail to compare last commit with index: %w", err)
}
if !isCommitNecessary {
if !isDiff {
return ErrNothingToCommit
}

Expand Down

0 comments on commit cfe4090

Please sign in to comment.