Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed Sep 8, 2024
1 parent 3b7a4f3 commit ade8a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const fileContains = (filePath, value) => {
};

const ensureCsvHeader = (filePath, header) => {
if (fs.existsSync(filePath)) fs.writeFileSync(filePath, `${header}\n`);
if (!fs.existsSync(filePath)) fs.writeFileSync(filePath, `${header}\n`);
};

const escapeCsvValue = (value) => {
Expand Down

0 comments on commit ade8a18

Please sign in to comment.