Skip to content

Commit 5f0458f

Browse files
committed
MINOR: fix more linting errors
1 parent 450fbd8 commit 5f0458f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

check-commit/check.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ func (c CommitPolicyConfig) CheckSubject(rawSubject []byte) error {
163163
if c.CheckPatchTypes(tag, severity, pType) { // we found what we were looking for, so consume input
164164
rawSubject = rawSubject[submatch[1]:]
165165
tagOK = tagOK || true
166+
166167
break
167168
}
168169
}
@@ -278,7 +279,10 @@ func getCommitSubjects(repo *git.Repository, from, to string) ([]string, error)
278279
log.Fatalf("repo history error %s", err)
279280
}
280281

281-
cIter, err := repo.Log(&git.LogOptions{From: *hashes[1]})
282+
logOptions := new(git.LogOptions)
283+
logOptions.From = *hashes[1]
284+
285+
cIter, err := repo.Log(logOptions)
282286
if err != nil {
283287
log.Fatalf("error getting commit log %s", err)
284288
}

0 commit comments

Comments
 (0)