We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f253e commit b4bb805Copy full SHA for b4bb805
gosh_test.go
@@ -15,15 +15,15 @@ import (
15
16
type wrongJSONEncoder struct{}
17
18
-func (e *wrongJSONEncoder) Encode(v interface{}) error {
+func (e *wrongJSONEncoder) Encode(_ any) error {
19
return fmt.Errorf("wrong json encoder") //nolint: goerr113
20
}
21
22
func newJSONEncoder(w io.Writer) gosh.JSONEncoder {
23
return json.NewEncoder(w)
24
25
26
-func newWrongJSONEncoder(w io.Writer) gosh.JSONEncoder {
+func newWrongJSONEncoder(_ io.Writer) gosh.JSONEncoder {
27
return &wrongJSONEncoder{}
28
29
0 commit comments