Skip to content

Commit

Permalink
fix(csv-to-json): remove redundant await
Browse files Browse the repository at this point in the history
  • Loading branch information
osoken committed Jan 28, 2023
1 parent cb4bb0b commit 98a2497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/postprocess/csv_to_json_converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class CsvToJsonConverter extends BasePostprocess {
async execute(_: string[], targetPath: string): Promise<string> {
const text = await Deno.readTextFile(targetPath);
const result = await parse(text, { skipFirstRow: true });
await Deno.writeTextFileSync(targetPath.replace(/\.csv?$/, ".json"), JSON.stringify(result));
Deno.writeTextFileSync(targetPath.replace(/\.csv?$/, ".json"), JSON.stringify(result));
return targetPath;
}
validate(argumentList: string[]) {
Expand Down

0 comments on commit 98a2497

Please sign in to comment.