diff --git a/packages/upload-client/src/tools/buildFormData.ts b/packages/upload-client/src/tools/buildFormData.ts index 36bf264b7..f8c289dba 100644 --- a/packages/upload-client/src/tools/buildFormData.ts +++ b/packages/upload-client/src/tools/buildFormData.ts @@ -63,7 +63,7 @@ function collectParams( ): void { if (isFileValue(inputValue)) { const { name, contentType }: FileOptions = inputValue - const file = transformFile(inputValue.data, name, contentType) as Blob // lgtm [js/superfluous-trailing-arguments] + const file = transformFile(inputValue.data, name, contentType) const options = getFileOptions({ name, contentType }) params.push([inputKey, file, ...options]) } else if (isObjectValue(inputValue)) { diff --git a/packages/upload-client/src/tools/identity.ts b/packages/upload-client/src/tools/identity.ts index 5a3e228b8..08733bdfe 100644 --- a/packages/upload-client/src/tools/identity.ts +++ b/packages/upload-client/src/tools/identity.ts @@ -1,3 +1,4 @@ -export function identity(obj: T): T { +// eslint-disable-next-line @typescript-eslint/no-unused-vars +export function identity(obj: T, ..._args: never): T { return obj }