Skip to content

Commit

Permalink
Merge pull request #119 from JunNishimura/#118
Browse files Browse the repository at this point in the history
change variable name from 'isCommitNecessary' to 'isDiff'
  • Loading branch information
JunNishimura committed Jun 13, 2023
2 parents 59917c1 + 6131696 commit 3828cc4
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 @@ -194,11 +194,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 3828cc4

Please sign in to comment.