Skip to content

Commit 8d46542

Browse files
authored
refactor: linting fixes (#39)
1 parent d236a1e commit 8d46542

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/jsondecoder/jsondecoder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ var (
1212
ErrUnknownField = errors.New("unknown field in JSON input")
1313
)
1414

15-
// UnmarshalDisallowUnknownFieldsUnmarshal parses the JSON-encoded data
15+
// UnmarshalDisallowUnknownFields parses the JSON-encoded data
1616
// and stores the result in the value pointed to by v like json.Unmarshal,
1717
// but with DisallowUnknownFields() set by default for extra security.
18-
func UnmarshalDisallowUnknownFields(data []byte, v interface{}) error {
18+
func UnmarshalDisallowUnknownFields(data []byte, v any) error {
1919
dec := json.NewDecoder(bytes.NewReader(data))
2020
dec.DisallowUnknownFields()
2121

0 commit comments

Comments
 (0)