From abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 15 Jul 2025 16:43:33 +0200 Subject: all: apply linter auto fixes ./tools/syz-env bin/golangci-lint run ./... --fix --- pkg/email/parser_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/email/parser_test.go') diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go index 87f6ec38e..c9e7022ae 100644 --- a/pkg/email/parser_test.go +++ b/pkg/email/parser_test.go @@ -19,7 +19,7 @@ func TestExtractCommand(t *testing.T) { if diff := cmp.Diff(test.cmd, cmd); diff != "" { t.Fatal(diff) } - cmd, _ = extractCommand(strings.Replace(test.body, "\n", "\r\n", -1)) + cmd, _ = extractCommand(strings.ReplaceAll(test.body, "\n", "\r\n")) if diff := cmp.Diff(test.cmd, cmd); diff != "" { t.Fatal(diff) } @@ -130,8 +130,8 @@ func TestParse(t *testing.T) { } t.Run(fmt.Sprint(i), func(t *testing.T) { body(t, test) }) - test.email = strings.Replace(test.email, "\n", "\r\n", -1) - test.res.Body = strings.Replace(test.res.Body, "\n", "\r\n", -1) + test.email = strings.ReplaceAll(test.email, "\n", "\r\n") + test.res.Body = strings.ReplaceAll(test.res.Body, "\n", "\r\n") t.Run(fmt.Sprint(i)+"rn", func(t *testing.T) { body(t, test) }) } } -- cgit mrf-deployment