Additional greediness.

This commit is contained in:
Matt T. Proud 2013-03-15 14:41:04 -07:00
parent b00ca7e422
commit 5a71814778

View file

@ -539,7 +539,7 @@ func optimizeTimeGroup(group ops) (out ops) {
} else if containsRange && containsInterval { } else if containsRange && containsInterval {
out = append(out, greediestRange) out = append(out, greediestRange)
for _, op := range greediestIntervals { for _, op := range greediestIntervals {
if !op.Through().After(greediestRange.Through()) { if !op.GreedierThan(greediestRange) {
continue continue
} }