Skip to content

Commit 018897d

Browse files
committed
filters/accesslog: Remove redundant []any array syntax in test files
This commit removes the redundant array type declaration in the test files by using the short syntax for array literals. The Go compiler can infer the type from the context.
1 parent 4384249 commit 018897d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: filters/accesslog/control_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,18 @@ func TestAccessLogMaskedParametersMerging(t *testing.T) {
105105
msg: "should merge masked query params from multiple filters",
106106
state: NewMaskAccessLogQuery(),
107107
args: [][]any{
108-
[]any{"key_1"},
109-
[]any{"key_2"},
108+
{"key_1"},
109+
{"key_2"},
110110
},
111111
result: AccessLogFilter{Enable: true, MaskedQueryParams: map[string]bool{"key_1": true, "key_2": true}},
112112
},
113113
{
114114
msg: "should overwrite already masked params",
115115
state: NewMaskAccessLogQuery(),
116116
args: [][]any{
117-
[]any{"key_1"},
118-
[]any{"key_1"},
119-
[]any{"key_1"},
117+
{"key_1"},
118+
{"key_1"},
119+
{"key_1"},
120120
},
121121
result: AccessLogFilter{Enable: true, MaskedQueryParams: map[string]bool{"key_1": true}},
122122
},

0 commit comments

Comments
 (0)