Skip to content

Commit

Permalink
only ifError if we have an err value
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Mar 10, 2015
1 parent 51f2f97 commit 4205104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Test.prototype.timeoutAfter = function(ms) {

Test.prototype.end = function (err) {
var self = this;
if (arguments.length >= 1) {
if (arguments.length >= 1 && !!err) {
this.ifError(err);
}

Expand Down

0 comments on commit 4205104

Please sign in to comment.