Double-quotes to single ones.

This commit is contained in:
Alexis Lahouze 2018-06-10 14:21:24 +02:00
parent 7ca6a9827a
commit efe9b6340d

View File

@ -40,7 +40,7 @@ export class AuthInterceptor implements HttpInterceptor {
let loginService = this.injector.get(LoginService); let loginService = this.injector.get(LoginService);
if(request.url == loginService.url) { 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); return next.handle(request);
} }
@ -61,7 +61,7 @@ export class AuthInterceptor implements HttpInterceptor {
return observable.catch( return observable.catch(
(error, caught): Observable<any> => { (error, caught): Observable<any> => {
this.logger.error("Error", error, caught); this.logger.error('Error', error, caught);
if(!(error instanceof HttpErrorResponse) || error.status != 401) { if(!(error instanceof HttpErrorResponse) || error.status != 401) {
return Observable.throw(error); return Observable.throw(error);
@ -74,12 +74,12 @@ export class AuthInterceptor implements HttpInterceptor {
} }
if(!this.observable) { if(!this.observable) {
this.logger.log("No current login observable.") this.logger.log('No current login observable.');
this.observable = loginService.login(); this.observable = loginService.login();
} }
return this.observable.flatMap((token: Token): Observable<HttpEvent<any>> => { return this.observable.flatMap((token: Token): Observable<HttpEvent<any>> => {
this.logger.log("Logged in, access_token:", token.access_token); this.logger.log('Logged in, access_token:', token.access_token);
this.observable = null; this.observable = null;
return this.intercept(request, next, ++pass); return this.intercept(request, next, ++pass);
}).catch((error) => { }).catch((error) => {