Skip to content

Commit

Permalink
Fix openDevNullWritable (#116)
Browse files Browse the repository at this point in the history
* Fix `openDevNullWritable`

* 2.1.3

Signed-off-by: Jiahao XU <[email protected]>

---------

Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu authored Jun 19, 2024
1 parent a43e706 commit 0c019c0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "release-pr",
"publish": false,
"version": "2.1.1",
"version": "2.1.3",
"description": "",
"main": "lib/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function render(template: string, vars: TemplateVars): string {
}

async function openDevNullWritable(): Promise<stream.Writable> {
const file = await fs.open('/dev/null');
const file = await fs.open('/dev/null', 'w');
return file.createWriteStream();
}

Expand Down

0 comments on commit 0c019c0

Please sign in to comment.