chore: rm double conditional
This commit is contained in:
@@ -161,7 +161,6 @@ export namespace Ripgrep {
|
|||||||
stderr: await Bun.readableStreamToText(proc.stderr),
|
stderr: await Bun.readableStreamToText(proc.stderr),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (config.extension === "zip") {
|
|
||||||
if (config.extension === "zip") {
|
if (config.extension === "zip") {
|
||||||
const zipFileReader = new ZipReader(new BlobReader(new Blob([await Bun.file(archivePath).arrayBuffer()])))
|
const zipFileReader = new ZipReader(new BlobReader(new Blob([await Bun.file(archivePath).arrayBuffer()])))
|
||||||
const entries = await zipFileReader.getEntries()
|
const entries = await zipFileReader.getEntries()
|
||||||
@@ -190,7 +189,6 @@ export namespace Ripgrep {
|
|||||||
await Bun.write(filepath, await rgBlob.arrayBuffer())
|
await Bun.write(filepath, await rgBlob.arrayBuffer())
|
||||||
await zipFileReader.close()
|
await zipFileReader.close()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
await fs.unlink(archivePath)
|
await fs.unlink(archivePath)
|
||||||
if (!platformKey.endsWith("-win32")) await fs.chmod(filepath, 0o755)
|
if (!platformKey.endsWith("-win32")) await fs.chmod(filepath, 0o755)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user