Skip to content

Commit

Permalink
Revert errors
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy committed Jul 23, 2022
1 parent 4fd2ff5 commit e4aedf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/web/repo/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ func calReleaseNumCommitsBehind(repoCtx *context.Repository, release *models.Rel
if repoCtx.GitRepo.IsBranchExist(release.Target) {
commit, err := repoCtx.GitRepo.GetBranchCommit(release.Target)
if err != nil {
return fmt.Errorf("GetRefCommit: %v", err)
return fmt.Errorf("GetBranchCommit: %v", err)
}
countCache[release.Target], err = commit.CommitsCount()
if err != nil {
return fmt.Errorf("GetBranchCommit: %v", err)
return fmt.Errorf("CommitsCount: %v", err)
}
} else {
// Use NumCommits of the newest release on that target
Expand Down

0 comments on commit e4aedf2

Please sign in to comment.