Skip to content
Snippets Groups Projects
Commit e331edad authored by Ramakrishnan Muthukrishnan's avatar Ramakrishnan Muthukrishnan
Browse files

fix hlint-reported warnings

parent 9eaac7f8
No related branches found
No related tags found
1 merge request!32Pass paths to secrets in commandline arguments instead of secrets
......@@ -204,7 +204,7 @@ logEndpoint endpoint =
getApp :: ServerConfig -> IO Application
getApp config =
let
getIssuer ServerConfig{ issuer, signingKeyPath } = do
getIssuer ServerConfig{ issuer, signingKeyPath } =
case (issuer, signingKeyPath) of
(Trivial, Nothing) -> return $ Right trivialIssue
(Ristretto, Just keyPath) -> do
......
......@@ -174,7 +174,7 @@ charge d key (Charges token voucher amount currency) = do
Left StripeError {} -> throwError err400 { errBody = "Stripe charge didn't succeed" }
where
getCurrency :: Text -> Handler Currency
getCurrency maybeCurrency = do
getCurrency maybeCurrency =
case readMaybe (unpack currency) of
Just currency' -> return currency'
Nothing -> throwError err400 { errBody = "Invalid currency specified" }
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
-- | This module exposes a Servant-based Network.Wai server for payment
-- interactions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment