Clean up code and fix linter errors

This commit is contained in:
Daniel
2020-10-30 13:33:29 +01:00
parent fa3f873c31
commit 7b72d9fe4b
8 changed files with 23 additions and 37 deletions

View File

@@ -142,10 +142,10 @@ func upgradeCoreNotifyActionHandler(_ context.Context, n *notifications.Notifica
nil,
)
if err != nil {
log.Warningf("updates: failed to trigger restart via notification: %s", err)
return fmt.Errorf("failed to trigger restart via notification: %s", err)
}
case "later":
n.Delete()
return n.Delete()
}
return nil