minor opt

This commit is contained in:
Joey Hess 2015-04-02 00:33:08 -04:00
parent 7b32e7acb5
commit ee4af54005

View file

@ -111,7 +111,7 @@ segmentXargsUnordered l = go l [] 0 []
where
go [] c _ r = (c:r)
go (f:fs) c accumlen r
| len < maxlen && newlen > maxlen = go (f:fs) [] 0 (c:r)
| newlen > maxlen && len < maxlen = go (f:fs) [] 0 (c:r)
| otherwise = go fs (f:c) newlen r
where
len = length f