Skip to content

Commit

Permalink
Fix cuddling linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
johnboyes authored Feb 10, 2024
1 parent 7d1aec2 commit fc80cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/github/action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func TestLabelChecks(t *testing.T) {
if len(tc.expectedStderr) > 0 {
tc.expectedStderr = "::error:: " + tc.expectedStderr
}

setPullRequestNumber(tc.prNumber)
setPrefixMode(tc.prefixMode)
tc.specifyChecks()
Expand Down Expand Up @@ -269,6 +270,7 @@ func checkLabels() (int, *bytes.Buffer, *bytes.Buffer) {
stdout := &bytes.Buffer{}
stderr := &bytes.Buffer{}
a := Action{}

return a.CheckLabels(stdout, stderr), stdout, stderr
}

Expand Down
1 change: 1 addition & 0 deletions internal/github/pullrequest/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (l Labels) HasAllOf(specified []string, prefixMode bool) (bool, string) {
if prefixMode {
return false, "The label checker does not support prefix checking with `all_of`, as that is not a logical combination." //nolint:lll
}

return l.hasXof(specified, "all", prefixMode)
}

Expand Down

0 comments on commit fc80cfc

Please sign in to comment.