Added braces to single condition firingEvaluation string

pull/6579/head
utkarshcmu 9 years ago
parent 690868c837
commit fc82dac868
  1. 2
      pkg/services/alerting/eval_handler.go

@ -47,7 +47,7 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) {
if i > 0 {
firingEval = "[" + firingEval + " " + operator + " " + strconv.FormatBool(cr.Firing) + "]"
} else {
firingEval = strconv.FormatBool(firing)
firingEval = "[" + strconv.FormatBool(firing) + "]"
}
context.EvalMatches = append(context.EvalMatches, cr.EvalMatches...)

Loading…
Cancel
Save