1
0
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:
Niko Köser
2021-01-29 19:53:31 +01:00
parent e83d90888b
commit 94e2bf0c5c
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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)
}
}