From 5f831b41a1cf6a8b59c648fc1554f5613cbfd0f4 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 12 Jan 2024 16:41:22 -0800 Subject: [PATCH] [Refactor] `Results`: use `this` instead of `self` --- lib/results.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/results.js b/lib/results.js index f4dd1558..0b83dc0e 100644 --- a/lib/results.js +++ b/lib/results.js @@ -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) {