mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
style(alerting): remove blank lines
This commit is contained in:
parent
22805ce56b
commit
0d7a871223
@ -21,7 +21,6 @@ func NewEvalHandler() *DefaultEvalHandler {
|
||||
}
|
||||
|
||||
func (e *DefaultEvalHandler) Eval(context *EvalContext) {
|
||||
|
||||
go e.eval(context)
|
||||
|
||||
select {
|
||||
@ -32,11 +31,9 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) {
|
||||
case <-context.DoneChan:
|
||||
e.log.Debug("Job Execution done", "timeMs", context.GetDurationMs(), "alertId", context.Rule.Id, "firing", context.Firing)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (e *DefaultEvalHandler) eval(context *EvalContext) {
|
||||
|
||||
for _, condition := range context.Rule.Conditions {
|
||||
condition.Eval(context)
|
||||
|
||||
|
@ -40,6 +40,5 @@ func TestAlertingExecutor(t *testing.T) {
|
||||
handler.eval(context)
|
||||
So(context.Firing, ShouldEqual, false)
|
||||
})
|
||||
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user