mirror of
https://github.com/nikoksr/notify.git
synced 2026-05-22 10:15:31 +02:00
chore(lint): apply changes suggested by golangci-lint
This commit is contained in:
@@ -38,13 +38,12 @@ func (s Slack) Send(subject, message string) error {
|
||||
fullMessage := subject + "\n" + message // Treating subject as message title
|
||||
|
||||
for _, channelID := range s.channelIDs {
|
||||
|
||||
id, timestamp, err := s.client.PostMessage(
|
||||
channelID,
|
||||
slack.MsgOptionText(fullMessage, false),
|
||||
)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to send message to Slack channel '%d' at time '%s'", id, timestamp)
|
||||
return errors.Wrapf(err, "failed to send message to Slack channel '%s' at time '%s'", id, timestamp)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user