aboutsummaryrefslogtreecommitdiff
path: root/Creds.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-11 00:10:34 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-11 00:10:34 -0400
commite80353490db56e21d266a384141d39f50797e8e3 (patch)
treeb6d7a46763e1d83f11fd57eaad36800d666f7a8f /Creds.hs
parent9becab4331b57a05369a3dcf225c57fd24f39e41 (diff)
a few hlints
Diffstat (limited to 'Creds.hs')
-rw-r--r--Creds.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Creds.hs b/Creds.hs
index 765be5a17..a4074c5c1 100644
--- a/Creds.hs
+++ b/Creds.hs
@@ -179,13 +179,13 @@ includeCredsInfo c storage info = do
Just _ -> do
let (uenv, penv) = credPairEnvironment storage
ret $ "from environment variables (" ++ unwords [uenv, penv] ++ ")"
- Nothing -> case (\ck -> M.lookup ck c) =<< credPairRemoteKey storage of
+ Nothing -> case (`M.lookup` c) =<< credPairRemoteKey storage of
Nothing -> ifM (existsCacheCredPair storage)
( ret "stored locally"
, ret "not available"
)
Just _ -> case extractCipher c of
- Just (EncryptedCipher _ _ _) -> ret "embedded in git repository (gpg encrypted)"
+ Just (EncryptedCipher {}) -> ret "embedded in git repository (gpg encrypted)"
_ -> ret "embedded in git repository (not encrypted)"
where
ret s = return $ ("creds", s) : info