Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/internal/Notification.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PartialObserver } from './types';
import { Observable } from './Observable';
import { empty } from './observable/empty';
import { EMPTY } from './observable/empty';
import { of } from './observable/of';
import { throwError } from './observable/throwError';

Expand Down Expand Up @@ -104,7 +104,7 @@ export class Notification<T> {
case 'E':
return throwError(this.error);
case 'C':
return empty();
return EMPTY;
}
throw new Error('unexpected notification kind value');
}
Expand Down
4 changes: 2 additions & 2 deletions src/internal/operators/repeat.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { Observable } from '../Observable';
import { empty } from '../observable/empty';
import { EMPTY } from '../observable/empty';
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';

/**
Expand Down Expand Up @@ -63,7 +63,7 @@ import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
export function repeat<T>(count: number = -1): MonoTypeOperatorFunction<T> {
return (source: Observable<T>) => {
if (count === 0) {
return empty();
return EMPTY;
} else if (count < 0) {
return source.lift(new RepeatOperator(-1, source));
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/internal/operators/take.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';
import { empty } from '../observable/empty';
import { EMPTY } from '../observable/empty';
import { Observable } from '../Observable';
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';

Expand Down Expand Up @@ -54,7 +54,7 @@ import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
export function take<T>(count: number): MonoTypeOperatorFunction<T> {
return (source: Observable<T>) => {
if (count === 0) {
return empty();
return EMPTY;
} else {
return source.lift(new TakeOperator(count));
}
Expand Down
4 changes: 2 additions & 2 deletions src/internal/operators/takeLast.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';
import { empty } from '../observable/empty';
import { EMPTY } from '../observable/empty';
import { Observable } from '../Observable';
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';

Expand Down Expand Up @@ -50,7 +50,7 @@ import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
export function takeLast<T>(count: number): MonoTypeOperatorFunction<T> {
return function takeLastOperatorFunction(source: Observable<T>): Observable<T> {
if (count === 0) {
return empty();
return EMPTY;
} else {
return source.lift(new TakeLastOperator(count));
}
Expand Down