Skip to content

Commit 6670373

Browse files
committed
Apply hlint suggestions
1 parent 2e97cc7 commit 6670373

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

services/brig/src/Brig/API/Auth.hs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,9 @@ handleTokenError =
216216

217217
handleTokenErrors :: [Either Text a] -> Handler r [a]
218218
handleTokenErrors ts = case partitionEithers ts of
219-
((e : _), []) ->
220-
( throwStd
221-
. Wai.mkError status403 "client-error"
222-
. LT.fromStrict
223-
$ e
224-
)
219+
(e : _, []) ->
220+
throwStd
221+
. Wai.mkError status403 "client-error"
222+
. LT.fromStrict
223+
$ e
225224
(_, vs) -> pure vs

services/brig/src/Brig/API/Public/Swagger.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE TemplateHaskell #-}
2-
31
module Brig.API.Public.Swagger
42
( SwaggerDocsAPI,
53
pregenSwagger,

services/brig/src/Brig/Provider/API.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ deleteAccountH ::
724724
ExceptT Error (AppT r) Response
725725
deleteAccountH (pid ::: req) = do
726726
guardSecondFactorDisabled Nothing
727-
empty <$ (mapExceptT wrapHttpClient $ deleteAccount pid =<< parseJsonBody req)
727+
empty <$ mapExceptT wrapHttpClient (deleteAccount pid =<< parseJsonBody req)
728728

729729
deleteAccount ::
730730
( MonadReader Env m,

services/brig/test/integration/API/User/Client.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ testClientsWithoutPrekeys brig cannon db opts = do
444444
!!! do
445445
const 200 === statusCode
446446
const
447-
( Right $
447+
( Right
448448
( expectedClientMap
449449
domain
450450
uid1

0 commit comments

Comments
 (0)