fix: clean up final 16 no-unused-vars warnings (#22751)

This commit is contained in:
Kit Langton
2026-04-15 23:54:21 -04:00
committed by GitHub
parent bd29004831
commit 9f4b73b6a3
13 changed files with 8 additions and 37 deletions

View File

@@ -68,23 +68,6 @@ function findBinary() {
}
}
function prepareBinDirectory(binaryName) {
const binDir = path.join(__dirname, "bin")
const targetPath = path.join(binDir, binaryName)
// Ensure bin directory exists
if (!fs.existsSync(binDir)) {
fs.mkdirSync(binDir, { recursive: true })
}
// Remove existing binary/symlink if it exists
if (fs.existsSync(targetPath)) {
fs.unlinkSync(targetPath)
}
return { binDir, targetPath }
}
async function main() {
try {
if (os.platform() === "win32") {