summaryrefslogtreecommitdiff
path: root/Command/DropUnused.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/DropUnused.hs')
-rw-r--r--Command/DropUnused.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Command/DropUnused.hs b/Command/DropUnused.hs
index 07ae1b48c..70dcc4cc7 100644
--- a/Command/DropUnused.hs
+++ b/Command/DropUnused.hs
@@ -71,8 +71,7 @@ readUnusedLog prefix = do
let f = gitAnnexUnusedLog prefix g
e <- liftIO $ doesFileExist f
if e
- then return . M.fromList . map parse . lines
- =<< liftIO (readFile f)
+ then M.fromList . map parse . lines <$> liftIO (readFile f)
else return M.empty
where
parse line = (head ws, fromJust $ readKey $ unwords $ tail ws)