mirror of https://github.com/actions/toolkit
ensure callback is only called once
parent
88f7a7bc65
commit
902046e4d8
|
@ -128,10 +128,7 @@ export async function streamExtractExternal(
|
|||
if (!createdDirectories.has(path.dirname(fullPath))) {
|
||||
createdDirectories.add(path.dirname(fullPath))
|
||||
await resolveOrCreateDirectory(path.dirname(fullPath)).then(
|
||||
() => {
|
||||
entry.autodrain()
|
||||
callback()
|
||||
}
|
||||
() => {}
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue