Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
almostinf committed Nov 27, 2023
1 parent 1a18e24 commit 4b4dd24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/redis/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion notifier/registrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b4dd24

Please sign in to comment.