refactor(@angular-devkit/core): remove deprecated rxjs empty function usage

The RxJS `empty` function is deprecated and will be removed in future versions.
The `EMPTY` constant is the recommended replacement.
This commit is contained in:
Charles Lyding 2022-08-11 11:51:36 -04:00 committed by Charles
parent db17eac251
commit ddf1257d14

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import { Observable, Operator, PartialObserver, Subject, Subscription, empty } from 'rxjs';
import { EMPTY, Observable, Operator, PartialObserver, Subject, Subscription } from 'rxjs';
import { JsonObject } from '../json/utils';
export interface LoggerMetadata extends JsonObject {
@ -34,7 +34,7 @@ export class Logger extends Observable<LogEntry> implements LoggerApi {
protected readonly _subject: Subject<LogEntry> = new Subject<LogEntry>();
protected _metadata: LoggerMetadata;
private _obs: Observable<LogEntry> = empty();
private _obs: Observable<LogEntry> = EMPTY;
private _subscription: Subscription | null = null;
protected get _observable() {