Skip to content

Commit

Permalink
Fix return with no blank line before lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
johnboyes authored Feb 8, 2024
1 parent 383eed3 commit 316bb0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/github/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (a *Action) CheckLabels(stdout, stderr io.Writer) int {
}

a.outputResult("success")

return 0
}

Expand All @@ -68,6 +69,7 @@ func (a *Action) handleFailure() int {
if a.allowFailure() {
return 0
}

return 1
}

Expand All @@ -86,6 +88,7 @@ func (a *Action) runCheck(chk check, specified []string, prefixMode bool) {

if prefixMode && len(specified) > 1 {
a.failMsg += "Currently the label checker only supports checking with one prefix, not multiple."

return
}

Expand Down

0 comments on commit 316bb0b

Please sign in to comment.