From ff2fd08228dd6323ac4a1cbd2f37f8ae15733eab Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 20 Dec 2021 05:41:31 +0100 Subject: Simplify parameter types (#18006) Remove repeated type declarations in function definitions. --- services/webhook/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/webhook/slack.go') diff --git a/services/webhook/slack.go b/services/webhook/slack.go index 575aedf0c0..a67fe6a762 100644 --- a/services/webhook/slack.go +++ b/services/webhook/slack.go @@ -85,7 +85,7 @@ func SlackShortTextFormatter(s string) string { } // SlackLinkFormatter creates a link compatible with slack -func SlackLinkFormatter(url string, text string) string { +func SlackLinkFormatter(url, text string) string { return fmt.Sprintf("<%s|%s>", url, SlackTextFormatter(text)) } -- cgit v1.2.3