Fixed Decoder.Series() error checking (#9201)
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
parent
7291563d4d
commit
84e786ebc1
|
@ -1852,7 +1852,7 @@ func (dec *Decoder) Series(b []byte, lbls *labels.Labels, chks *[]chunks.Meta) e
|
|||
k = d.Uvarint()
|
||||
|
||||
if k == 0 {
|
||||
return nil
|
||||
return d.Err()
|
||||
}
|
||||
|
||||
t0 := d.Varint64()
|
||||
|
|
Loading…
Reference in New Issue