Skip to content

Commit

Permalink
Remove a ts-ignore by using Object.entries (#2150)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinLemCode authored Aug 19, 2024
1 parent 1488452 commit 5fa60e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,7 @@ export function flattenAndStringify(
const result: Record<string, string | Uint8Array> = {};

const step = (obj: MultipartRequestData, prevKey: string | null): void => {
Object.keys(obj).forEach((key) => {
// @ts-ignore
const value = obj[key];

Object.entries(obj).forEach(([key, value]) => {
const newKey = prevKey ? `${prevKey}[${key}]` : key;

if (isObject(value)) {
Expand Down

0 comments on commit 5fa60e5

Please sign in to comment.