diff --git a/database/redis/trigger.go b/database/redis/trigger.go index 83055aa0c..cc7edba21 100644 --- a/database/redis/trigger.go +++ b/database/redis/trigger.go @@ -208,7 +208,7 @@ func (connector *DbConnector) GetTriggerIDsStartWith(prefix string) ([]string, e return matchedTriggers, nil } -func (connector *DbConnector) updateTrigger(triggerID string, newTrigger *moira.Trigger, oldTrigger *moira.Trigger) error { +func (connector *DbConnector) updateTrigger(triggerID string, newTrigger *moira.Trigger, oldTrigger *moira.Trigger) error { // nolint:gocyclo bytes, err := reply.GetTriggerBytes(triggerID, newTrigger) if err != nil { return err diff --git a/notifier/registrator.go b/notifier/registrator.go index 1cee0d4f2..6e7660e1f 100644 --- a/notifier/registrator.go +++ b/notifier/registrator.go @@ -52,7 +52,7 @@ func (notifier *StandardNotifier) RegisterSenders(connector moira.Database) erro return fmt.Errorf("failed to get sender type from settings") } - // if a sender of this type already exists, do not create it again + // If a sender of this type already exists, do not create it again if sender, ok := notifier.senders[senderType]; ok { if err = notifier.RegisterSender(senderSettings, sender); err != nil { return err