Browse Source

assert: replace !!!value with just !value

Not harmful, just code cleanup.

Fixes #5885.
v0.11.5-release
Ben Noordhuis 12 years ago
parent
commit
dc9acd4fae
  1. 2
      lib/assert.js

2
lib/assert.js

@ -109,7 +109,7 @@ assert.fail = fail;
// assert.strictEqual(true, guard, message_opt);.
function ok(value, message) {
if (!!!value) fail(value, true, message, '==', assert.ok);
if (!value) fail(value, true, message, '==', assert.ok);
}
assert.ok = ok;

Loading…
Cancel
Save