Skip to content

Commit 1a4017c

Browse files
committed
Rename const
1 parent b862baa commit 1a4017c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/pending-interceptor.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export class PendingInterceptorService implements HttpInterceptor {
4141
}
4242

4343
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
44-
const shouldByPass = this.shouldBypass(req.url);
44+
const shouldBypass = this.shouldBypass(req.url);
4545

46-
if (!shouldByPass) {
46+
if (!shouldBypass) {
4747
this._pendingRequests++;
4848

4949
if (1 === this._pendingRequests) {
@@ -58,7 +58,7 @@ export class PendingInterceptorService implements HttpInterceptor {
5858
return Observable.throw(error);
5959
})
6060
.finally(() => {
61-
if (!shouldByPass) {
61+
if (!shouldBypass) {
6262
this._pendingRequests--;
6363

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

0 commit comments

Comments
 (0)