Skip to content

Commit

Permalink
refactor(@angular-devkit/core): remove deprecated rxjs empty functi…
Browse files Browse the repository at this point in the history
…on usage

The RxJS `empty` function is deprecated and will be removed in future versions.
The `EMPTY` constant is the recommended replacement.

(cherry picked from commit ddf1257)
  • Loading branch information
clydin committed Aug 11, 2022
1 parent 365035c commit c63501d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/angular_devkit/core/src/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit c63501d

Please sign in to comment.