Skip to content

Commit

Permalink
chore(upload-client): fix CodeQL warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Dec 29, 2022
1 parent 27e8fdc commit c6b74fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/upload-client/src/tools/buildFormData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
3 changes: 2 additions & 1 deletion packages/upload-client/src/tools/identity.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export function identity<T>(obj: T): T {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function identity<T>(obj: T, ..._args: never): T {
return obj
}

0 comments on commit c6b74fe

Please sign in to comment.