From bf43f4567c9387163eb7b2dfa25ab51e585ac43d Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Mon, 2 Nov 2020 23:14:19 +0200 Subject: [PATCH] dict controller lint --- .../lib/api/dictionaryController.service.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/libs/red-ui-http/src/lib/api/dictionaryController.service.ts b/libs/red-ui-http/src/lib/api/dictionaryController.service.ts index 9103e4e7c..6d28aea25 100644 --- a/libs/red-ui-http/src/lib/api/dictionaryController.service.ts +++ b/libs/red-ui-http/src/lib/api/dictionaryController.service.ts @@ -111,7 +111,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = []; + const httpHeaderAccepts: string[] = []; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -180,7 +180,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = []; + const httpHeaderAccepts: string[] = []; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -262,7 +262,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = []; + const httpHeaderAccepts: string[] = []; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -333,7 +333,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = []; + const httpHeaderAccepts: string[] = []; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -401,7 +401,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = ['*/*']; + const httpHeaderAccepts: string[] = ['*/*']; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -452,7 +452,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = ['application/json']; + const httpHeaderAccepts: string[] = ['application/json']; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -496,7 +496,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = ['application/json']; + const httpHeaderAccepts: string[] = ['application/json']; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -560,7 +560,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = ['application/json']; + const httpHeaderAccepts: string[] = ['application/json']; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -608,7 +608,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = ['*/*']; + const httpHeaderAccepts: string[] = ['*/*']; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -668,7 +668,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = []; + const httpHeaderAccepts: string[] = []; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -750,7 +750,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = []; + const httpHeaderAccepts: string[] = []; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -836,7 +836,7 @@ export class DictionaryControllerService { } // to determine the Accept header - let httpHeaderAccepts: string[] = []; + const httpHeaderAccepts: string[] = []; const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept( httpHeaderAccepts ); @@ -851,7 +851,7 @@ export class DictionaryControllerService { let formParams: { append(param: string, value: any): void }; let useForm = false; - let convertFormParamsToString = false; + const convertFormParamsToString = false; // use FormData to transmit files using content-type "multipart/form-data" // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data useForm = canConsumeForm;