aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/unsubscribe_test.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2021-02-26 22:10:26 +0100
committerReto Brunner <reto@labrat.space>2021-02-26 22:14:58 +0100
commit8b4f2d148c8519326f306fd14ba872d7cb3101c6 (patch)
tree278576aa1e034c5cb2c5df9a1579661c3edacfee /commands/msg/unsubscribe_test.go
parentfda424bebc6dedbbcbffe4d330accc70d081b478 (diff)
downloadaerc-8b4f2d148c8519326f306fd14ba872d7cb3101c6.tar.gz
Fix linter warnings
* Remove redundant return (code was never reached) * Remove redundant type information * Rename unused function parameters to "_"
Diffstat (limited to 'commands/msg/unsubscribe_test.go')
-rw-r--r--commands/msg/unsubscribe_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/commands/msg/unsubscribe_test.go b/commands/msg/unsubscribe_test.go
index e4e6f25e..d34efb1a 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{"<https://example.com>, <http://example.com>", []string{
+ {"", []string{}},
+ {"invalid", []string{}},
+ {"<https://example.com>, <http://example.com>", []string{
"https://example.com", "http://example.com",
}},
- &tc{"<https://example.com> is a URL", []string{
+ {"<https://example.com> is a URL", []string{
"https://example.com",
}},
- &tc{"<mailto:user@host?subject=unsubscribe>, <https://example.com>",
+ {"<mailto:user@host?subject=unsubscribe>, <https://example.com>",
[]string{
"mailto:user@host?subject=unsubscribe", "https://example.com",
}},
- &tc{"<>, <https://example> ", []string{
+ {"<>, <https://example> ", []string{
"", "https://example",
}},
}