Fixed Decoder.Series() error checking (#9201)

Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
Marco Pracucci 2021-08-13 12:41:41 +02:00 committed by GitHub
parent 7291563d4d
commit 84e786ebc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()