Skip to content

Commit fc82dac

Browse files
committed
Added braces to single condition firingEvaluation string
1 parent 690868c commit fc82dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/services/alerting/eval_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) {
4747
if i > 0 {
4848
firingEval = "[" + firingEval + " " + operator + " " + strconv.FormatBool(cr.Firing) + "]"
4949
} else {
50-
firingEval = strconv.FormatBool(firing)
50+
firingEval = "[" + strconv.FormatBool(firing) + "]"
5151
}
5252

5353
context.EvalMatches = append(context.EvalMatches, cr.EvalMatches...)

0 commit comments

Comments
 (0)