Skip to content

Commit

Permalink
Refactor getAndUpdateIteration function to update iteration file path…
Browse files Browse the repository at this point in the history
… and simplify directory creation
  • Loading branch information
argahsuknesib committed Sep 24, 2024
1 parent f2c857a commit 88c8f40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ function getAndUpdateIteration() {
if (fs.existsSync(iterationFilePath)) {
iteration = parseInt(fs.readFileSync(iterationFilePath, 'utf8'), 10) + 1;
}
else {
fs.mkdirSync(path.join('/logs'));
}
fs.writeFileSync(iterationFilePath, iteration.toString());
return iteration;
}
Expand Down

0 comments on commit 88c8f40

Please sign in to comment.