Skip to content

Commit

Permalink
Merge pull request #1022 from zach593/master
Browse files Browse the repository at this point in the history
fix State.AddError() empty str check
  • Loading branch information
Eric Greer committed Feb 24, 2022
2 parents 9941e4b + b28d763 commit 0c52160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/health/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type State struct {
// AddError adds new errors to State
func (h *State) AddError(s ...string) {
for _, str := range s {
if len(s) == 0 {
if len(str) == 0 {
log.Warningln("AddError was called but the error was blank so it was skipped.")
continue
}
Expand Down

0 comments on commit 0c52160

Please sign in to comment.