Skip to content

Commit 577fe62

Browse files
fix: correct mistaken logging
Signed-off-by: Andrew Lilley Brinker <abrinker@mitre.org>
1 parent 60bd8e2 commit 577fe62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/middleware/authz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class Check {
469469
async run (req) {
470470
logger.debug({ message: `Running check ${this.#name}`, uuid: req.ctx.uuid })
471471
const result = await this.#check(req)
472-
const resultStr = (result != null) ? 'passed' : 'failed'
472+
const resultStr = (result == null) ? 'passed' : 'failed'
473473
logger.debug({ message: `Check ${this.#name} ${resultStr}`, uuid: req.ctx.uuid })
474474
// Convert `undefined` to `null`. For convenience, we let the underlying
475475
// `CheckFn` return `undefined` to indicate success, but it's probably

0 commit comments

Comments
 (0)