Commit 862815d1 by bergquist

go meta lint errors

parent 638eca3c
...@@ -125,7 +125,7 @@ func (c *EvalContext) GetNewState() m.AlertStateType { ...@@ -125,7 +125,7 @@ func (c *EvalContext) GetNewState() m.AlertStateType {
return ns return ns
} }
since := time.Now().Sub(c.Rule.LastStateChange) since := time.Since(c.Rule.LastStateChange)
if c.PrevAlertState == m.AlertStatePending && since > c.Rule.For { if c.PrevAlertState == m.AlertStatePending && since > c.Rule.For {
return m.AlertStateAlerting return m.AlertStateAlerting
} }
......
...@@ -36,7 +36,6 @@ func TestGetStateFromEvalContext(t *testing.T) { ...@@ -36,7 +36,6 @@ func TestGetStateFromEvalContext(t *testing.T) {
name string name string
expected models.AlertStateType expected models.AlertStateType
applyFn func(ec *EvalContext) applyFn func(ec *EvalContext)
focus bool
}{ }{
{ {
name: "ok -> alerting", name: "ok -> alerting",
......
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