style(alerting): rename executor -> handler

This commit is contained in:
bergquist
2016-06-15 11:49:20 +02:00
parent 777ca4cd7d
commit 779ea55ee0
6 changed files with 16 additions and 16 deletions

View File

@@ -22,14 +22,14 @@ func SetNewAlertState(cmd *m.UpdateAlertStateCommand) error {
alert := m.Alert{}
has, err := sess.Id(cmd.AlertId).Get(&alert)
if !has {
return fmt.Errorf("Could not find alert")
}
if err != nil {
return err
}
if !has {
return fmt.Errorf("Could not find alert")
}
if alert.State == cmd.NewState {
cmd.Result = &m.Alert{}
return nil