File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments