Merge pull request #77 from fosrl/hotfix-2

remove double createHttpError
This commit is contained in:
Milo Schwartz 2025-01-17 22:00:25 -05:00 committed by GitHub
commit d27ecaae5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,10 +109,7 @@ export async function authWithPincode(
return next( return next(
createHttpError( createHttpError(
HttpCode.UNAUTHORIZED, HttpCode.UNAUTHORIZED,
createHttpError( "Resource has no pincode protection"
HttpCode.BAD_REQUEST,
"Resource has no pincode protection"
)
) )
); );
} }