mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
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:
parent
db17eac251
commit
ddf1257d14
@ -6,7 +6,7 @@
|
|||||||
* found in the LICENSE file at https://angular.io/license
|
* 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';
|
import { JsonObject } from '../json/utils';
|
||||||
|
|
||||||
export interface LoggerMetadata extends JsonObject {
|
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 readonly _subject: Subject<LogEntry> = new Subject<LogEntry>();
|
||||||
protected _metadata: LoggerMetadata;
|
protected _metadata: LoggerMetadata;
|
||||||
|
|
||||||
private _obs: Observable<LogEntry> = empty();
|
private _obs: Observable<LogEntry> = EMPTY;
|
||||||
private _subscription: Subscription | null = null;
|
private _subscription: Subscription | null = null;
|
||||||
|
|
||||||
protected get _observable() {
|
protected get _observable() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user