Skip to content

Commit

Permalink
Fix run length decode logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
notbdu committed Dec 19, 2018
1 parent ac1f1da commit f49e620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encoding/run_length_decode_bool.gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (rl *RunLengthBoolIterator) Next() bool {
if rl.err != nil {
return false
}
rl.curr, rl.err = rl.readValue(rl.reader)
}

if rl.repetitions < 1 {
Expand All @@ -79,8 +80,7 @@ func (rl *RunLengthBoolIterator) Next() bool {
rl.repetitions--
}

rl.curr, rl.err = rl.readValue(rl.reader)
return rl.err == nil
return true
}

// Current returns the current string.
Expand Down

0 comments on commit f49e620

Please sign in to comment.