File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ export const properties = {
1515
1616export 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 } ) ;
You can’t perform that action at this time.
0 commit comments