From 8b4f2d148c8519326f306fd14ba872d7cb3101c6 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Fri, 26 Feb 2021 22:10:26 +0100 Subject: Fix linter warnings * Remove redundant return (code was never reached) * Remove redundant type information * Rename unused function parameters to "_" --- commands/msg/unsubscribe_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'commands/msg/unsubscribe_test.go') diff --git a/commands/msg/unsubscribe_test.go b/commands/msg/unsubscribe_test.go index e4e6f25..d34efb1 100644 --- a/commands/msg/unsubscribe_test.go +++ b/commands/msg/unsubscribe_test.go @@ -10,19 +10,19 @@ func TestParseUnsubscribe(t *testing.T) { expected []string } cases := []*tc{ - &tc{"", []string{}}, - &tc{"invalid", []string{}}, - &tc{", ", []string{ + {"", []string{}}, + {"invalid", []string{}}, + {", ", []string{ "https://example.com", "http://example.com", }}, - &tc{" is a URL", []string{ + {" is a URL", []string{ "https://example.com", }}, - &tc{", ", + {", ", []string{ "mailto:user@host?subject=unsubscribe", "https://example.com", }}, - &tc{"<>, ", []string{ + {"<>, ", []string{ "", "https://example", }}, } -- cgit v1.2.3