refactor: hlint

This commit is contained in:
Gregor Kleen 2020-12-03 16:20:54 +01:00
parent 833b674c31
commit 22961d9a89
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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