summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Command')
-rw-r--r--Command/DropUnused.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/DropUnused.hs b/Command/DropUnused.hs
index 2c3bb296a..3df9ab6c2 100644
--- a/Command/DropUnused.hs
+++ b/Command/DropUnused.hs
@@ -73,6 +73,6 @@ readUnusedLog prefix = do
then M.fromList . map parse . lines <$> liftIO (readFile f)
else return M.empty
where
- parse line = (head ws, fromJust $ readKey $ unwords $ tail ws)
+ parse line = (num, fromJust $ readKey $ tail rest)
where
- ws = words line
+ (num, rest) = break (== ' ') line