From c94b4d16ffdace67923d0dbdde5eaf09bd46e62f Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sun, 8 May 2022 01:09:04 +0100 Subject: [PATCH] small clean --- src/util/BaseRestClient.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index 4d7e3c7..4d0c957 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -157,15 +157,12 @@ export default abstract class BaseRestClient { } } - const preparedRequestParams = await this.prepareSignParams( - params, - isPublicApi - ); + const signResult = await this.prepareSignParams(params, isPublicApi); if (method === 'GET') { - options.params = preparedRequestParams.paramsWithSign; + options.params = signResult.paramsWithSign; } else { - options.data = preparedRequestParams.paramsWithSign; + options.data = signResult.paramsWithSign; } return axios(options)