Skip to content

Commit

Permalink
fix critics
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Apr 1, 2024
1 parent df7cd4b commit c1a2679
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/snclient/snclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -746,13 +746,14 @@ func (snc *Agent) runCheck(ctx context.Context, name string, args []string) *Che
chk.defaultCritical = crit
}
if chk.showHelp > 0 {
rc := CheckExitUnknown
state := CheckExitUnknown
if chk.showHelp == Markdown {
rc = CheckExitOK
state = CheckExitOK
}

return &CheckResult{
Raw: chk,
State: rc,
State: state,
Output: chk.Help(chk.showHelp),
}
}
Expand Down

0 comments on commit c1a2679

Please sign in to comment.