From 917a77ee07e81c28cc010d261115b8f86b7be234 Mon Sep 17 00:00:00 2001 From: Kasper Lewau Date: Tue, 20 Aug 2024 18:14:40 +0200 Subject: [PATCH] chore: update decoder.go (#436) --- decoder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decoder.go b/decoder.go index 4ae4698..0e0ab9d 100644 --- a/decoder.go +++ b/decoder.go @@ -26,14 +26,14 @@ func NewDecoderForSchema(schema Schema, reader io.Reader) *Decoder { } // Decode reads the next Avro encoded value from its input and stores it in the value pointed to by v. -func (d *Decoder) Decode(obj any) error { +func (d *Decoder) Decode(v any) error { if d.r.head == d.r.tail && d.r.reader != nil { if !d.r.loadMore() { return io.EOF } } - d.r.ReadVal(d.s, obj) + d.r.ReadVal(d.s, v) //nolint:errorlint // Only direct EOF errors should be discarded. if d.r.Error == io.EOF {