We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60bd8e2 commit 577fe62Copy full SHA for 577fe62
1 file changed
src/middleware/authz.js
@@ -469,7 +469,7 @@ class Check {
469
async run (req) {
470
logger.debug({ message: `Running check ${this.#name}`, uuid: req.ctx.uuid })
471
const result = await this.#check(req)
472
- const resultStr = (result != null) ? 'passed' : 'failed'
+ const resultStr = (result == null) ? 'passed' : 'failed'
473
logger.debug({ message: `Check ${this.#name} ${resultStr}`, uuid: req.ctx.uuid })
474
// Convert `undefined` to `null`. For convenience, we let the underlying
475
// `CheckFn` return `undefined` to indicate success, but it's probably
0 commit comments