diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-04-11 00:10:34 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-04-11 00:10:34 -0400 |
commit | e80353490db56e21d266a384141d39f50797e8e3 (patch) | |
tree | b6d7a46763e1d83f11fd57eaad36800d666f7a8f /Remote.hs | |
parent | 9becab4331b57a05369a3dcf225c57fd24f39e41 (diff) |
a few hlints
Diffstat (limited to 'Remote.hs')
-rw-r--r-- | Remote.hs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -130,8 +130,7 @@ byName' n = go . filter matching <$> remoteList byNameOrGroup :: RemoteName -> Annex [Remote] byNameOrGroup n = go =<< getConfigMaybe (ConfigKey ("remotes." ++ n)) where - go (Just l) = concatMap maybeToList <$> - mapM (byName . Just) (split " " l) + go (Just l) = catMaybes <$> mapM (byName . Just) (split " " l) go Nothing = maybeToList <$> byName (Just n) {- Only matches remote name, not UUID -} @@ -343,4 +342,4 @@ claimingUrl url = do let web = Prelude.head $ filter (\r -> uuid r == webUUID) rs fromMaybe web <$> firstM checkclaim rs where - checkclaim = maybe (pure False) (flip id url) . claimUrl + checkclaim = maybe (pure False) (`id` url) . claimUrl |