Permalink
Browse files

Relax failure msg null check

  • Loading branch information...
1 parent d8dfc27 commit 64913e6c2ed2b895e21ac80d0292c11dd745893b @yourcelf yourcelf committed May 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 expect.js
View
@@ -466,7 +466,7 @@
* @api public
*/
Assertion.prototype.fail = function (msg) {
- msg = msg != null ? msg : "explicit failure";
+ msg = msg || "explicit failure";
this.assert(false, msg, msg);
return this;
};

0 comments on commit 64913e6

Please sign in to comment.