Commit 0d7a8712 by bergquist

style(alerting): remove blank lines

parent 22805ce5
...@@ -21,7 +21,6 @@ func NewEvalHandler() *DefaultEvalHandler { ...@@ -21,7 +21,6 @@ func NewEvalHandler() *DefaultEvalHandler {
} }
func (e *DefaultEvalHandler) Eval(context *EvalContext) { func (e *DefaultEvalHandler) Eval(context *EvalContext) {
go e.eval(context) go e.eval(context)
select { select {
...@@ -32,11 +31,9 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) { ...@@ -32,11 +31,9 @@ func (e *DefaultEvalHandler) Eval(context *EvalContext) {
case <-context.DoneChan: case <-context.DoneChan:
e.log.Debug("Job Execution done", "timeMs", context.GetDurationMs(), "alertId", context.Rule.Id, "firing", context.Firing) e.log.Debug("Job Execution done", "timeMs", context.GetDurationMs(), "alertId", context.Rule.Id, "firing", context.Firing)
} }
} }
func (e *DefaultEvalHandler) eval(context *EvalContext) { func (e *DefaultEvalHandler) eval(context *EvalContext) {
for _, condition := range context.Rule.Conditions { for _, condition := range context.Rule.Conditions {
condition.Eval(context) condition.Eval(context)
......
...@@ -40,6 +40,5 @@ func TestAlertingExecutor(t *testing.T) { ...@@ -40,6 +40,5 @@ func TestAlertingExecutor(t *testing.T) {
handler.eval(context) handler.eval(context)
So(context.Firing, ShouldEqual, false) So(context.Firing, ShouldEqual, false)
}) })
}) })
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment