Skip to content

Commit afc598c

Browse files
committed
Rename shouldBypass to shouldBypassUrl
1 parent e5c6287 commit afc598c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/pending-interceptor.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ export class PendingInterceptorService implements HttpInterceptor {
3030
return this._filteredUrlPatterns;
3131
}
3232

33-
private shouldBypass(url: string): boolean {
33+
private shouldBypassUrl(url: string): boolean {
3434
return this._filteredUrlPatterns.some(e => {
3535
return e.test(url);
3636
});
3737
}
3838

3939
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
40-
const shouldBypass = this.shouldBypass(req.urlWithParams);
40+
const shouldBypassUrl = this.shouldBypassUrl(req.urlWithParams);
4141

42-
if (!shouldBypass) {
42+
if (!shouldBypassUrl) {
4343
this._pendingRequests++;
4444

4545
if (1 === this._pendingRequests) {
@@ -55,7 +55,7 @@ export class PendingInterceptorService implements HttpInterceptor {
5555
return throwError(error);
5656
}),
5757
finalize(() => {
58-
if (!shouldBypass) {
58+
if (!shouldBypassUrl) {
5959
this._pendingRequests--;
6060

6161
if (0 === this._pendingRequests) {

0 commit comments

Comments
 (0)