Fix undefined binaryPath in BinaryManager

This commit is contained in:
advplyr committed 2026-09-19 16:57:01 -05:00
1 parent 4c27a7b68e
commit 608d3ddde8
1 file changed
+1 -1
+1 -1
View File
@@ -369,8 +369,8 @@ class BinaryManager {
* @param {Binary} binary
*/
async removeBinary(destination, binary) {
const binaryPath = path.join(destination, binary.fileName)
try {
const binaryPath = path.join(destination, binary.fileName)
if (await fs.pathExists(binaryPath)) {
Logger.debug(`[BinaryManager] Removing binary: ${binaryPath}`)
await fs.remove(binaryPath)