diff options
-rw-r--r-- | .golangci.yml | 1 | ||||
-rw-r--r-- | decode.go | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml index cc094f1..cadb81b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -54,7 +54,6 @@ linters: - gomnd - ireturn - lll - - nakedret - noctx - paralleltest - prealloc @@ -860,7 +860,7 @@ func DecodeObject(r io.RuneScanner, decodeKey, decodeVal func(io.RuneScanner) er dec.panicType(t.JSONType(), nil, fmt.Errorf("did not consume entire %s", t.JSONType())) } }) - return + return err } func (dec *Decoder) decodeObject(gTyp reflect.Type, decodeKey, decodeVal func()) { |