diff options
author | 2015-04-11 00:10:34 -0400 | |
---|---|---|
committer | 2015-04-11 00:10:34 -0400 | |
commit | e80353490db56e21d266a384141d39f50797e8e3 (patch) | |
tree | b6d7a46763e1d83f11fd57eaad36800d666f7a8f /Creds.hs | |
parent | 9becab4331b57a05369a3dcf225c57fd24f39e41 (diff) |
a few hlints
Diffstat (limited to 'Creds.hs')
-rw-r--r-- | Creds.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |