From efe9b6340dcefd15480665caf7ff630b4522058f Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 10 Jun 2018 14:21:24 +0200 Subject: [PATCH] Double-quotes to single ones. --- src/login/authInterceptor.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/login/authInterceptor.ts b/src/login/authInterceptor.ts index bd3c984..f8d1a98 100644 --- a/src/login/authInterceptor.ts +++ b/src/login/authInterceptor.ts @@ -40,7 +40,7 @@ export class AuthInterceptor implements HttpInterceptor { let loginService = this.injector.get(LoginService); if(request.url == loginService.url) { - this.logger.log("Login URL, do not handle."); + this.logger.log('Login URL, do not handle.'); return next.handle(request); } @@ -61,7 +61,7 @@ export class AuthInterceptor implements HttpInterceptor { return observable.catch( (error, caught): Observable => { - this.logger.error("Error", error, caught); + this.logger.error('Error', error, caught); if(!(error instanceof HttpErrorResponse) || error.status != 401) { return Observable.throw(error); @@ -74,12 +74,12 @@ export class AuthInterceptor implements HttpInterceptor { } if(!this.observable) { - this.logger.log("No current login observable.") + this.logger.log('No current login observable.'); this.observable = loginService.login(); } return this.observable.flatMap((token: Token): Observable> => { - this.logger.log("Logged in, access_token:", token.access_token); + this.logger.log('Logged in, access_token:', token.access_token); this.observable = null; return this.intercept(request, next, ++pass); }).catch((error) => {