From 756cddad9c2cd67a66f6f87bf61b4a64f329bdac Mon Sep 17 00:00:00 2001 From: Tyler Reid Date: Wed, 16 Jun 2021 09:38:18 -0500 Subject: [PATCH] Fix for golangci-lint warning Signed-off-by: Tyler Reid --- notify/sns/sns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify/sns/sns.go b/notify/sns/sns.go index 63e40252..167f7e97 100644 --- a/notify/sns/sns.go +++ b/notify/sns/sns.go @@ -190,7 +190,7 @@ func validateAndTruncateMessage(message string) (string, bool, error) { if utf8.ValidString(message) { // if the message is larger than 256KB we have to truncate. if len(message) > 256*1024 { - truncated := make([]byte, 256*1024, 256*1024) + truncated := make([]byte, 256 * 1024) copy(truncated, message) return string(truncated), true, nil }