mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-29 05:11:33 +03:00
fix a warning
This commit is contained in:
parent
a761ae5b86
commit
746f22458f
@ -179,7 +179,7 @@ postingsDateSpan ps = DateSpan (Just $ postingDate $ head ps') (Just $ addDays 1
|
||||
|
||||
-- --date2-sensitive version, as above.
|
||||
postingsDateSpan' :: WhichDate -> [Posting] -> DateSpan
|
||||
postingsDateSpan' wd [] = DateSpan Nothing Nothing
|
||||
postingsDateSpan' _ [] = DateSpan Nothing Nothing
|
||||
postingsDateSpan' wd ps = DateSpan (Just $ postingdate $ head ps') (Just $ addDays 1 $ postingdate $ last ps')
|
||||
where
|
||||
ps' = sortBy (comparing postingdate) ps
|
||||
|
Loading…
Reference in New Issue
Block a user