mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 12:42:58 +08:00
ensure callback is only called once
This commit is contained in:
parent
88f7a7bc65
commit
902046e4d8
@ -128,10 +128,7 @@ export async function streamExtractExternal(
|
|||||||
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)).then(
|
||||||
() => {
|
() => {}
|
||||||
entry.autodrain()
|
|
||||||
callback()
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user