AAE-30882 Code formatting and unit tests

This commit is contained in:
Wojciech Duda
2025-02-18 13:57:12 +01:00
parent 9cea847d06
commit 02df98e461
2 changed files with 69 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ export class SuperagentHttpClient implements HttpClient {
const newParams: { [key: string]: any } = {};
for (const key in params) {
if (Object.prototype.hasOwnProperty.call(params, key) && params[key] !== undefined && params[key] !== null) {
if (Object.prototype.hasOwnProperty.call(params, key) && params[key] !== null) {
const value = params[key];
if (SuperagentHttpClient.isFileParam(value) || Array.isArray(value)) {
newParams[key] = value;