Skip to content

Commit

Permalink
Accurately report status of last check if debugEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sourque committed Aug 6, 2020
1 parent 373e146 commit 93d815f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ func scoreCheck(wg *sync.WaitGroup, check check) {
defer wg.Done()
status := true
passStatus := []bool{}
for _, condition := range check.Pass {
for i, condition := range check.Pass {
passItemStatus := processCheckWrapper(&check, condition.Type, condition.Arg1, condition.Arg2, condition.Arg3)
passStatus = append(passStatus, passItemStatus)
if debugEnabled {
infoPrint(fmt.Sprint("Result of last pass check was ", status))
infoPrint(fmt.Sprint("Result of last pass check was ", passStatus[i]))
}
passStatus = append(passStatus, passItemStatus)
}

// For multiple pass conditions, will only be true if ALL of them are
Expand Down

0 comments on commit 93d815f

Please sign in to comment.