refactor: hlint
This commit is contained in:
parent
05d37fbc0c
commit
096b92f300
@ -492,9 +492,9 @@ instance FromJSON AppSettings where
|
||||
appServerSessionConfig' <- o .: "server-sessions"
|
||||
let appServerSessionConfig = ServerSessionSettings $ httpOnlyCookie . secureCookie . applyServerSessionSettings appServerSessionConfig'
|
||||
where httpOnlyCookie :: forall a. ServerSession.State a -> ServerSession.State a
|
||||
httpOnlyCookie = fromMaybe id $ ServerSession.setHttpOnlyCookies <$> cookieHttpOnly (appCookieSettings CookieSession)
|
||||
httpOnlyCookie = maybe id ServerSession.setHttpOnlyCookies . cookieHttpOnly $ appCookieSettings CookieSession
|
||||
secureCookie :: forall a. ServerSession.State a -> ServerSession.State a
|
||||
secureCookie = fromMaybe id $ ServerSession.setSecureCookies <$> cookieSecure (appCookieSettings CookieSession)
|
||||
secureCookie = maybe id ServerSession.setSecureCookies . cookieSecure $ appCookieSettings CookieSession
|
||||
appSessionTokenExpiration <- o .:? "session-token-expiration"
|
||||
appSessionTokenEncoding <- o .: "session-token-encoding"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user