Skip to content

Commit 4205104

Browse files
committedMar 10, 2015
only ifError if we have an err value
1 parent 51f2f97 commit 4205104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Test.prototype.timeoutAfter = function(ms) {
122122

123123
Test.prototype.end = function (err) {
124124
var self = this;
125-
if (arguments.length >= 1) {
125+
if (arguments.length >= 1 && !!err) {
126126
this.ifError(err);
127127
}
128128

0 commit comments

Comments
 (0)
Please sign in to comment.