@@ -333,8 +333,8 @@ export class Api<SecurityDataType> {
333333
334334 private addQueryParams ( query ?: RequestQueryParamsType ) : string {
335335 const fixedQuery = query || { } ;
336- const keys = Object . keys ( fixedQuery ) . filter ( key => "undefined" !== typeof fixedQuery [ key ] ) ;
337- return keys . length === 0 ? "" : `?${ keys . map ( key => this . addQueryParam ( fixedQuery , key ) ) . join ( "&" ) } ` ;
336+ const keys = Object . keys ( fixedQuery ) . filter ( ( key ) => "undefined" !== typeof fixedQuery [ key ] ) ;
337+ return keys . length === 0 ? "" : `?${ keys . map ( ( key ) => this . addQueryParam ( fixedQuery , key ) ) . join ( "&" ) } ` ;
338338 }
339339
340340 private mergeRequestOptions ( params : RequestParams , securityParams ?: RequestParams ) : RequestParams {
@@ -353,8 +353,8 @@ export class Api<SecurityDataType> {
353353 private safeParseResponse = < T = any , E = any > ( response : Response ) : Promise < T > =>
354354 response
355355 . json ( )
356- . then ( data => data )
357- . catch ( e => response . text ) ;
356+ . then ( ( data ) => data )
357+ . catch ( ( e ) => response . text ) ;
358358
359359 public request = < T = any , E = any > (
360360 path : string ,
@@ -368,7 +368,7 @@ export class Api<SecurityDataType> {
368368 ...this . mergeRequestOptions ( params , ( secureByDefault || secure ) && this . securityWorker ( this . securityData ) ) ,
369369 method,
370370 body : body ? JSON . stringify ( body ) : null ,
371- } ) . then ( async response => {
371+ } ) . then ( async ( response ) => {
372372 const data = await this . safeParseResponse < T , E > ( response ) ;
373373 if ( ! response . ok ) throw data ;
374374 return data ;
0 commit comments