Skip to content

Commit

Permalink
fix: for csv maker awaitable event logic
Browse files Browse the repository at this point in the history
  • Loading branch information
adarleyjrr committed Jul 16, 2024
1 parent 3da7d98 commit 08cf42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixes awaitable event logic in CSV maker promise

## [3.0.1] - 2024-05-16

### Fixed
Expand Down
1 change: 0 additions & 1 deletion src/helpers/csv/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export const makeCsv = async (dir: string, name: string, content: Input, opts: O
.on('error', reject)
.on('finish', () => {
writeStream.end();
resolve();
});

writeStream.on('error', reject).on('finish', resolve);
Expand Down

0 comments on commit 08cf42b

Please sign in to comment.