From e80353490db56e21d266a384141d39f50797e8e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 11 Apr 2015 00:10:34 -0400 Subject: a few hlints --- Remote.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Remote.hs') diff --git a/Remote.hs b/Remote.hs index 58c1a0f17..771c63472 100644 --- a/Remote.hs +++ b/Remote.hs @@ -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 -- cgit v1.2.3