Whitespace

This commit is contained in:
patrick brisbin 2014-09-22 15:02:32 -04:00
parent a5c691512e
commit 646d2b246b
No known key found for this signature in database
GPG Key ID: DB04E2CE780A17DE

View File

@ -64,7 +64,7 @@ oauth2Learn clientId clientSecret = authOAuth2 "learn"
fetchLearnProfile :: Manager -> AccessToken -> IO (Creds m)
fetchLearnProfile manager token = do
result <- authGetJSON manager token "http://learn.thoughtbot.com/api/v1/me.json"
case result of
Right (LearnResponse user) -> return $ toCreds user
Left err -> throwIO $ InvalidProfileResponse "learn" err