refactor: hlint

This commit is contained in:
Gregor Kleen 2020-12-02 19:15:03 +01:00
parent 707b41d4ec
commit f7fdc5cf13

View File

@ -57,7 +57,7 @@ withFileDownloadTokenMaybe' mSource route = maybeT (return $ SomeRoute route) $
Just source -> do
results <- lift . runConduit $ source .| C.take 2 .| C.foldMap (pure . either Just (const Nothing))
return $ case results of
[Just (FileReference{ fileReferenceContent = Just ref })] -> DownloadRestrictSingle ref
[Just FileReference{ fileReferenceContent = Just ref }] -> DownloadRestrictSingle ref
_other -> DownloadRestrictMultiple
Nothing -> return DownloadRestrictMultiple
bearer <- lift $ bearerRestrict (urlRoute route) restr <$> bearerToken