Skip to content

Commit

Permalink
Test: remove unreachable statement
Browse files Browse the repository at this point in the history
The check for this is in the constructor now. It's not possible for `this.fn` to be undefined
  • Loading branch information
jamestalmage committed Jan 21, 2016
1 parent 2ac60bd commit 76399f4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ Test.prototype.run = function () {
self.promise.reject = reject;
});

// TODO(vdemedes): refactor this to avoid storing the promise
if (!this.fn) {
this.exit();
return undefined;
}

this._timeStart = globals.now();

// wait until all assertions are complete
Expand Down

0 comments on commit 76399f4

Please sign in to comment.