Skip to content

Commit ea4a087

Browse files
committed
make hashCommitStatusContext private
1 parent 6c633cc commit ea4a087

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/commit_status.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func NewCommitStatus(opts NewCommitStatusOptions) error {
209209
opts.CommitStatus.Index = nextIndex + 1
210210
log.Debug("NewCommitStatus[%s, %s]: %d", repoPath, opts.SHA, opts.CommitStatus.Index)
211211

212-
opts.CommitStatus.ContextHash = HashCommitStatusContext(opts.CommitStatus.Context)
212+
opts.CommitStatus.ContextHash = hashCommitStatusContext(opts.CommitStatus.Context)
213213

214214
// Insert new CommitStatus
215215
if _, err = sess.Insert(opts.CommitStatus); err != nil {
@@ -253,7 +253,7 @@ func ParseCommitsWithStatus(oldCommits *list.List, repo *Repository) *list.List
253253
return newCommits
254254
}
255255

256-
// HashCommitStatusContext hash context
257-
func HashCommitStatusContext(context string) string {
256+
// hashCommitStatusContext hash context
257+
func hashCommitStatusContext(context string) string {
258258
return fmt.Sprintf("%x", sha1.Sum([]byte(context)))
259259
}

0 commit comments

Comments
 (0)