Fixup many linter errors

This commit is contained in:
Johannes Zellner
2023-03-21 14:46:09 +01:00
parent 0743296bef
commit 22f9ffd119
4 changed files with 133 additions and 140 deletions

View File

@@ -34,7 +34,7 @@ async function get(req, res, next) {
const [error, client] = await safe(oidc.clients.get(req.params.clientId));
if (error) return next(BoxError.toHttpError(error));
if (!result) return next(new HttpError(404, 'OpenID connect client not found'));
if (!client) return next(new HttpError(404, 'OpenID connect client not found'));
next(new HttpSuccess(200, client));
}