Skip to content

Commit a2f3f44

Browse files
committed
Drop the until on orUntilComplete, cleaner
1 parent caac210 commit a2f3f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/performance/performance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class AngularFirePerformance {
8484
)
8585
};
8686

87-
traceWhile = <T=any>(name:string, test: (a:T) => boolean, options?: TraceOptions & { orUntilComplete: boolean}) => (source$: Observable<T>) => {
87+
traceWhile = <T=any>(name:string, test: (a:T) => boolean, options?: TraceOptions & { orComplete: boolean}) => (source$: Observable<T>) => {
8888
let traceSubscription: Subscription|undefined;
8989
return source$.pipe(
9090
tap(
@@ -96,7 +96,7 @@ export class AngularFirePerformance {
9696
}
9797
},
9898
() => {},
99-
() => options && options.orUntilComplete && traceSubscription && traceSubscription.unsubscribe()
99+
() => options && options.orComplete && traceSubscription && traceSubscription.unsubscribe()
100100
)
101101
)
102102
};

0 commit comments

Comments
 (0)