File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -253,13 +253,11 @@ func TestSortedResults(t *testing.T) {
253
253
want : strings .Join ([]string {
254
254
"testdata/sort_results/main.go:15:13: Error return value is not checked (errcheck)" ,
255
255
"testdata/sort_results/main.go:12:5: var `db` is unused (unused)" ,
256
- "testdata/sort_results/main.go:8:6: func `returnError` is unused (unused)" ,
257
256
}, "\n " ),
258
257
},
259
258
{
260
259
opt : "--sort-results=true" ,
261
260
want : strings .Join ([]string {
262
- "testdata/sort_results/main.go:8:6: func `returnError` is unused (unused)" ,
263
261
"testdata/sort_results/main.go:12:5: var `db` is unused (unused)" ,
264
262
"testdata/sort_results/main.go:15:13: Error return value is not checked (errcheck)" ,
265
263
}, "\n " ),
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ func returnError() error {
11
11
12
12
var db * sql.DB
13
13
14
- func _ () {
14
+ func Example () {
15
15
returnError ()
16
16
}
You can’t perform that action at this time.
0 commit comments