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. --- modules/charset/charset_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/charset/charset_test.go') diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go index 33f0c10a7a..8957bf3c1c 100644 --- a/modules/charset/charset_test.go +++ b/modules/charset/charset_test.go @@ -261,14 +261,14 @@ func TestDetectEncoding(t *testing.T) { assert.Error(t, err) } -func stringMustStartWith(t *testing.T, expected string, value string) { +func stringMustStartWith(t *testing.T, expected, value string) { assert.Equal(t, expected, string(value[:len(expected)])) } -func stringMustEndWith(t *testing.T, expected string, value string) { +func stringMustEndWith(t *testing.T, expected, value string) { assert.Equal(t, expected, string(value[len(value)-len(expected):])) } -func bytesMustStartWith(t *testing.T, expected []byte, value []byte) { +func bytesMustStartWith(t *testing.T, expected, value []byte) { assert.Equal(t, expected, value[:len(expected)]) } -- cgit v1.2.3