refactor(lib): use extractEntry function

This commit is contained in:
Luka 2025-01-15 22:18:49 +01:00 committed by GitHub
parent e223c58b2f
commit 863d1ce95d
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -71,12 +71,7 @@ local extractBinary: {
return
end
local contents = reader:extract(entry, { type = "binary" }) :: buffer
local executablePlatform = PlatformDescriptor.fromExecutable(contents)
if executablePlatform:isOk() and eq(executablePlatform:unwrap(), targetPlatform) then
binaryContents = contents
end
extractEntry(entry)
end)
end