Skip to content

Commit 74b4be4

Browse files
committed
Rename parameter
1 parent 05ae23f commit 74b4be4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/spinner/spinner.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ export class SpinnerComponent implements OnDestroy {
4141
constructor(private http: HttpInterceptorService, private pendingRequestInterceptorService: PendingInterceptorService) {
4242
this.oldSubscription = this.http
4343
.pendingRequestsStatus
44-
.subscribe(isSpinnerVisible => {
45-
if (isSpinnerVisible) {
44+
.subscribe(hasPendingRequests => {
45+
if (hasPendingRequests) {
4646
console.log(
4747
'HttpInterceptorService is deprecated and will soon be removed ' +
4848
'in favor of HttpClientModule. Please upgrade !'
4949
);
5050
}
51-
this.isSpinnerVisible = isSpinnerVisible;
51+
this.isSpinnerVisible = hasPendingRequests;
5252
});
5353

5454
this.subscription = this.pendingRequestInterceptorService
5555
.pendingRequestsStatus
56-
.subscribe(isSpinnerVisible => {
57-
this.isSpinnerVisible = isSpinnerVisible;
56+
.subscribe(hasPendingRequests => {
57+
this.isSpinnerVisible = hasPendingRequests;
5858
});
5959
}
6060

0 commit comments

Comments
 (0)