Fix multiLess.StrictNext

This commit is contained in:
Matt Joiner 2018-06-17 21:11:01 +10:00
parent 4939dd4e57
commit c1d1082136
1 changed files with 4 additions and 8 deletions

View File

@ -24,17 +24,13 @@ func (me *multiLess) FinalOk() (left, ok bool) {
}
func (me *multiLess) Next(f cmper) {
if me.ok {
return
}
same, less := f()
if same {
return
}
me.ok, me.less = true, less
me.StrictNext(f())
}
func (me *multiLess) StrictNext(same, less bool) {
if me.ok {
return
}
if same {
return
}