1
0
Fork 0

Merge pull request #1670 from actions/bethanyj28/fix-callback

Ensure callback is only called once
pull/1671/head
Bethany 2024-02-26 10:04:37 -05:00 committed by GitHub
commit 5a7faf0eb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 6 deletions

View File

@ -127,12 +127,7 @@ export async function streamExtractExternal(
} else { } else {
if (!createdDirectories.has(path.dirname(fullPath))) { if (!createdDirectories.has(path.dirname(fullPath))) {
createdDirectories.add(path.dirname(fullPath)) createdDirectories.add(path.dirname(fullPath))
await resolveOrCreateDirectory(path.dirname(fullPath)).then( await resolveOrCreateDirectory(path.dirname(fullPath))
() => {
entry.autodrain()
callback()
}
)
} }
const writeStream = createWriteStream(fullPath) const writeStream = createWriteStream(fullPath)