Skip to content

Commit

Permalink
assert: replace !!!value with just !value
Browse files Browse the repository at this point in the history
Not harmful, just code cleanup.

Fixes nodejs#5885.
  • Loading branch information
bnoordhuis committed Jul 30, 2013
1 parent 6bd922f commit dc9acd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dc9acd4

Please sign in to comment.