Skip to content

Commit 320a18e

Browse files
committed
dev: concat string
1 parent 3aea4ce commit 320a18e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/run_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,17 +250,13 @@ func TestSortedResults(t *testing.T) {
250250
}{
251251
{
252252
opt: "--sort-results=false",
253-
want: strings.Join([]string{
254-
"testdata/sort_results/main.go:15:13: Error return value is not checked (errcheck)",
253+
want: "testdata/sort_results/main.go:15:13: Error return value is not checked (errcheck)" + "\n" +
255254
"testdata/sort_results/main.go:12:5: var `db` is unused (unused)",
256-
}, "\n"),
257255
},
258256
{
259257
opt: "--sort-results=true",
260-
want: strings.Join([]string{
261-
"testdata/sort_results/main.go:12:5: var `db` is unused (unused)",
258+
want: "testdata/sort_results/main.go:12:5: var `db` is unused (unused)" + "\n" +
262259
"testdata/sort_results/main.go:15:13: Error return value is not checked (errcheck)",
263-
}, "\n"),
264260
},
265261
}
266262

0 commit comments

Comments
 (0)