Skip to content

Commit 58f74c2

Browse files
committed
MINOR: more lint fixes
1 parent 365920b commit 58f74c2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

check-commit/check.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ func (c CommitPolicyConfig) CheckSubject(rawSubject []byte) error {
143143
var tag, severity string
144144

145145
for _, tagAlternative := range c.TagOrder {
146-
147146
tagOK := tagAlternative.Optional
148-
for _, pType := range tagAlternative.PatchTypes { // we allow more than one set of tags in a position
149147

148+
for _, pType := range tagAlternative.PatchTypes { // we allow more than one set of tags in a position
150149
submatch := r.FindSubmatchIndex(rawSubject)
151150
if len(submatch) == 0 { // no match
152151
continue
@@ -261,7 +260,6 @@ func main() {
261260
errors := false
262261

263262
for _, subject := range bytes.Split(out, []byte("\n")) {
264-
265263
subject = bytes.Trim(subject, "'")
266264
if err := commitPolicy.CheckSubject(subject); err != nil {
267265
log.Printf("%s, original subject message '%s'", err, string(subject))

0 commit comments

Comments
 (0)