summaryrefslogtreecommitdiff
path: root/decode.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-26 23:44:53 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:14:51 -0700
commit0616a12019eb3220d437b02a30483720477f14a0 (patch)
tree6073f186d95a0068f53fe09473f467c78582bba0 /decode.go
parent690b0cbb2a220ef4179a0f9f34725328fb8c73f8 (diff)
.golangci.yml: Turn on 'nakedret', fix
Diffstat (limited to 'decode.go')
-rw-r--r--decode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.go b/decode.go
index 0b5b6cc..f237b2b 100644
--- a/decode.go
+++ b/decode.go
@@ -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()) {