Skip to content

Commit

Permalink
Merge pull request #3181 from fljot/patch-1
Browse files Browse the repository at this point in the history
Minor optimization in ignoreElements operator
  • Loading branch information
kwonoj authored Jan 11, 2018
2 parents e308ff9 + d013820 commit fc4a55a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/operators/ignoreElements.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Observable } from '../Observable';
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { noop } from '../util/noop';
import { MonoTypeOperatorFunction } from '../interfaces';

/**
Expand Down Expand Up @@ -33,6 +32,6 @@ class IgnoreElementsOperator<T, R> implements Operator<T, R> {
*/
class IgnoreElementsSubscriber<T> extends Subscriber<T> {
protected _next(unused: T): void {
noop();
// Do nothing
}
}

0 comments on commit fc4a55a

Please sign in to comment.