From 7044dda444ca8190611bd3169eec62e072913595 Mon Sep 17 00:00:00 2001 From: Kim Pepper Date: Wed, 8 Jul 2020 13:11:30 +1000 Subject: [PATCH] Fix linting --- cmd/sns-slack-notifier/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/sns-slack-notifier/main.go b/cmd/sns-slack-notifier/main.go index ca8eb5f..06ac5c6 100644 --- a/cmd/sns-slack-notifier/main.go +++ b/cmd/sns-slack-notifier/main.go @@ -35,7 +35,7 @@ func main() { // HandleRequest contains the code which will be executed. func HandleRequest(ctx context.Context, snsEvent events.SNSEvent) error { - slackApi := slack.New(*cliSlackToken) + slackAPI := slack.New(*cliSlackToken) for _, record := range snsEvent.Records { snsRecord := record.SNS attachment := slack.Attachment{ @@ -43,7 +43,7 @@ func HandleRequest(ctx context.Context, snsEvent events.SNSEvent) error { Text: snsRecord.Message, Footer: fmt.Sprintf(":skpr: %s Source: %s MessageID: %s Topic: %s", snsRecord.Timestamp.Format(time.UnixDate), record.EventSource, snsRecord.MessageID, snsRecord.TopicArn), } - _, _, err := slackApi.PostMessage(*cliSlackChannel, slack.MsgOptionText(snsRecord.Subject, false), slack.MsgOptionAttachments(attachment)) + _, _, err := slackAPI.PostMessage(*cliSlackChannel, slack.MsgOptionText(snsRecord.Subject, false), slack.MsgOptionAttachments(attachment)) if err != nil { return err }