refactor: hlint
This commit is contained in:
parent
833b674c31
commit
22961d9a89
@ -60,7 +60,7 @@ errorHandler err = do
|
|||||||
maybe clearUltDest setUltDest $ do
|
maybe clearUltDest setUltDest $ do
|
||||||
current <- mCurrent
|
current <- mCurrent
|
||||||
case current of
|
case current of
|
||||||
_ | W.requestMethod wai `notElem` ["GET"] -> Nothing
|
_ | W.requestMethod wai /= "GET" -> Nothing
|
||||||
ErrorR -> Nothing
|
ErrorR -> Nothing
|
||||||
current' -> Just (current', gets')
|
current' -> Just (current', gets')
|
||||||
$logInfoS "errorHandler" "Redirect to LoginR"
|
$logInfoS "errorHandler" "Redirect to LoginR"
|
||||||
|
|||||||
@ -165,5 +165,5 @@ instance FromJSON Auth.Key where
|
|||||||
|
|
||||||
instance ClusterSetting 'ClusterAuthKey where
|
instance ClusterSetting 'ClusterAuthKey where
|
||||||
type ClusterSettingValue 'ClusterAuthKey = Auth.Key
|
type ClusterSettingValue 'ClusterAuthKey = Auth.Key
|
||||||
initClusterSetting _ = liftIO $ Auth.newKey
|
initClusterSetting _ = liftIO Auth.newKey
|
||||||
knownClusterSetting _ = ClusterAuthKey
|
knownClusterSetting _ = ClusterAuthKey
|
||||||
|
|||||||
Reference in New Issue
Block a user