Fix ineffective assignment.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
This commit is contained in:
Alexey Palazhchenko 2018-05-07 16:02:49 +03:00
parent 64cce683cc
commit 9283c68e7d
1 changed files with 3 additions and 3 deletions

6
wal.go
View File

@ -937,7 +937,7 @@ func (r *walReader) Read(
series = v.([]RefSeries)
}
err := r.decodeSeries(flag, b, &series)
err = r.decodeSeries(flag, b, &series)
if err != nil {
err = errors.Wrap(err, "decode series entry")
break
@ -958,7 +958,7 @@ func (r *walReader) Read(
samples = v.([]RefSample)
}
err := r.decodeSamples(flag, b, &samples)
err = r.decodeSamples(flag, b, &samples)
if err != nil {
err = errors.Wrap(err, "decode samples entry")
break
@ -980,7 +980,7 @@ func (r *walReader) Read(
deletes = v.([]Stone)
}
err := r.decodeDeletes(flag, b, &deletes)
err = r.decodeDeletes(flag, b, &deletes)
if err != nil {
err = errors.Wrap(err, "decode delete entry")
break