refactor: hlint
This commit is contained in:
parent
707b41d4ec
commit
f7fdc5cf13
@ -57,7 +57,7 @@ withFileDownloadTokenMaybe' mSource route = maybeT (return $ SomeRoute route) $
|
|||||||
Just source -> do
|
Just source -> do
|
||||||
results <- lift . runConduit $ source .| C.take 2 .| C.foldMap (pure . either Just (const Nothing))
|
results <- lift . runConduit $ source .| C.take 2 .| C.foldMap (pure . either Just (const Nothing))
|
||||||
return $ case results of
|
return $ case results of
|
||||||
[Just (FileReference{ fileReferenceContent = Just ref })] -> DownloadRestrictSingle ref
|
[Just FileReference{ fileReferenceContent = Just ref }] -> DownloadRestrictSingle ref
|
||||||
_other -> DownloadRestrictMultiple
|
_other -> DownloadRestrictMultiple
|
||||||
Nothing -> return DownloadRestrictMultiple
|
Nothing -> return DownloadRestrictMultiple
|
||||||
bearer <- lift $ bearerRestrict (urlRoute route) restr <$> bearerToken
|
bearer <- lift $ bearerRestrict (urlRoute route) restr <$> bearerToken
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user