Skip to content

Commit

Permalink
Merge pull request #1670 from actions/bethanyj28/fix-callback
Browse files Browse the repository at this point in the history
Ensure callback is only called once
  • Loading branch information
bethanyj28 committed Feb 26, 2024
2 parents 88f7a7b + dcc55df commit 5a7faf0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/artifact/src/internal/download/download-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ export async function streamExtractExternal(
} else {
if (!createdDirectories.has(path.dirname(fullPath))) {
createdDirectories.add(path.dirname(fullPath))
await resolveOrCreateDirectory(path.dirname(fullPath)).then(
() => {
entry.autodrain()
callback()
}
)
await resolveOrCreateDirectory(path.dirname(fullPath))
}

const writeStream = createWriteStream(fullPath)
Expand Down

0 comments on commit 5a7faf0

Please sign in to comment.