Skip to content

Commit

Permalink
perf(ReplaySubject): remove unnecessary computation
Browse files Browse the repository at this point in the history
Remove unnecessary call to _getEvents() in ReplaySubject's _next().
No apparent reason for doing this. All tests still pass after this
commit.
  • Loading branch information
Andre Medeiros authored and benlesh committed Oct 6, 2015
1 parent 65c84ea commit 488ac2e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/subjects/ReplaySubject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default class ReplaySubject<T> extends Subject<T> {
_next(value?) {
const now = this._getNow();
this.events.push(new ReplayEvent(now, value));
this._getEvents(now);
super._next(value);
}

Expand Down

0 comments on commit 488ac2e

Please sign in to comment.