diff options
author | Joey Hess <joey@kitenet.net> | 2013-09-25 23:19:01 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-09-25 23:19:01 -0400 |
commit | f32cb2cf1576db1395f77bd5f7f0c0a3e86c1334 (patch) | |
tree | 7d61d584b86f263659c96d21e5aac235f6abe239 /Logs | |
parent | 9559613df8bb914b5034ba0f1aafd26884e5d9e7 (diff) |
hlint
Diffstat (limited to 'Logs')
-rw-r--r-- | Logs/Transfer.hs | 2 | ||||
-rw-r--r-- | Logs/Transitions.hs | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Logs/Transfer.hs b/Logs/Transfer.hs index 9bde51f40..24fb940d5 100644 --- a/Logs/Transfer.hs +++ b/Logs/Transfer.hs @@ -265,7 +265,7 @@ getFailedTransfers u = catMaybes <$> (liftIO . getpairs =<< concat <$> findfiles clearFailedTransfers :: UUID -> Annex [(Transfer, TransferInfo)] clearFailedTransfers u = do failed <- getFailedTransfers u - mapM_ removeFailedTransfer $ map fst failed + mapM_ (removeFailedTransfer . fst) failed return failed removeFailedTransfer :: Transfer -> Annex () diff --git a/Logs/Transitions.hs b/Logs/Transitions.hs index 783ce5090..6e5dc0dc9 100644 --- a/Logs/Transitions.hs +++ b/Logs/Transitions.hs @@ -82,6 +82,5 @@ transitionList = map transition . S.elems {- Typically ran with Annex.Branch.change, but we can't import Annex.Branch - here since it depends on this module. -} recordTransitions :: (FilePath -> (String -> String) -> Annex ()) -> Transitions -> Annex () -recordTransitions changer t = do - changer transitionsLog $ - showTransitions . S.union t . parseTransitionsStrictly "local" +recordTransitions changer t = changer transitionsLog $ + showTransitions . S.union t . parseTransitionsStrictly "local" |