Skip to content

Commit

Permalink
Minor optimization in ignoreElements operator
Browse files Browse the repository at this point in the history
We don't need to call any kind of `noop` function, simply do not call anything
  • Loading branch information
fljot authored Dec 12, 2017
1 parent efcd922 commit f40eafb
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 f40eafb

Please sign in to comment.