Skip to content

Commit 488ac2e

Browse files
Andre Medeirosbenlesh
authored andcommitted
perf(ReplaySubject): remove unnecessary computation
Remove unnecessary call to _getEvents() in ReplaySubject's _next(). No apparent reason for doing this. All tests still pass after this commit.
1 parent 65c84ea commit 488ac2e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/subjects/ReplaySubject.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default class ReplaySubject<T> extends Subject<T> {
2424
_next(value?) {
2525
const now = this._getNow();
2626
this.events.push(new ReplayEvent(now, value));
27-
this._getEvents(now);
2827
super._next(value);
2928
}
3029

0 commit comments

Comments
 (0)