Skip to content

Commit b4bb805

Browse files
committed
Fix golangci-lint warnings
1 parent 07f253e commit b4bb805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gosh_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import (
1515

1616
type wrongJSONEncoder struct{}
1717

18-
func (e *wrongJSONEncoder) Encode(v interface{}) error {
18+
func (e *wrongJSONEncoder) Encode(_ any) error {
1919
return fmt.Errorf("wrong json encoder") //nolint: goerr113
2020
}
2121

2222
func newJSONEncoder(w io.Writer) gosh.JSONEncoder {
2323
return json.NewEncoder(w)
2424
}
2525

26-
func newWrongJSONEncoder(w io.Writer) gosh.JSONEncoder {
26+
func newWrongJSONEncoder(_ io.Writer) gosh.JSONEncoder {
2727
return &wrongJSONEncoder{}
2828
}
2929

0 commit comments

Comments
 (0)