Skip to content

Commit d22c975

Browse files
committed
Merge branch 'main' of https://github.com/pedro3pv/ConvertX
2 parents 2401709 + cbf8a22 commit d22c975

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

src/converters/parquet.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export const properties = {
1515

1616
export async function convert(
1717
filePath: string,
18-
_fileType: string,
19-
_convertTo: string,
18+
fileType: string,
19+
convertTo: string,
2020
targetPath: string,
21-
_options?: unknown,
21+
options?: unknown, // eslint-disable-line @typescript-eslint/no-unused-vars
2222
): Promise<string> {
2323
const fileHandle = await fs.open(filePath, "r");
2424
try {
@@ -89,11 +89,13 @@ export async function convert(
8989
compressors,
9090
onComplete: (rows) => {
9191
if (Array.isArray(rows)) {
92-
writePromises.push((async () => {
93-
for (const row of rows) {
94-
await writeRow(row);
95-
}
96-
})());
92+
writePromises.push(
93+
(async () => {
94+
for (const row of rows) {
95+
await writeRow(row);
96+
}
97+
})(),
98+
);
9799
}
98100
},
99101
});

0 commit comments

Comments
 (0)