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