diff --git a/src/operator/bufferTime.ts b/src/operator/bufferTime.ts index 911ba5576bf..32df7d95f45 100644 --- a/src/operator/bufferTime.ts +++ b/src/operator/bufferTime.ts @@ -120,7 +120,7 @@ class BufferTimeSubscriber extends Subscriber { private scheduler: Scheduler) { super(destination); const context = this.openContext(); - this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0; + this.timespanOnly = bufferCreationInterval === null || bufferCreationInterval < 0; if (this.timespanOnly) { const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan }; this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));