From d013820cea3635aabee6fd400d5118cdd2a8cc97 Mon Sep 17 00:00:00 2001 From: Pavel Pevnitskiy Date: Tue, 12 Dec 2017 12:33:21 +0200 Subject: [PATCH] refactor(ignoreElements): removed redundant noop Minor optimization. We don't need to call any kind of `noop` function, simply do not call anything. --- src/operators/ignoreElements.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/operators/ignoreElements.ts b/src/operators/ignoreElements.ts index b0f1402f23..56802e5cdb 100644 --- a/src/operators/ignoreElements.ts +++ b/src/operators/ignoreElements.ts @@ -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'; /** @@ -33,6 +32,6 @@ class IgnoreElementsOperator implements Operator { */ class IgnoreElementsSubscriber extends Subscriber { protected _next(unused: T): void { - noop(); + // Do nothing } }