Skip to content

Commit

Permalink
[Refactor] Results: use this instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 13, 2024
1 parent f6d30cf commit 5f831b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,9 @@ Results.prototype.createStream = function (opts) {
};

Results.prototype.push = function (t) {
var self = this;
$push(self.tests, t);
self._watch(t);
self.emit('_push', t);
$push(this.tests, t);
this._watch(t);
this.emit('_push', t);
};

Results.prototype.only = function (t) {
Expand Down

0 comments on commit 5f831b4

Please sign in to comment.