From ed7ee9e857a41140a6e0dadbfc2828c3d95a6ab5 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Fri, 30 Jan 2026 04:59:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20variable=20scope=20issue?= =?UTF-8?q?=20by=20reassigning=20`config`=20outside=20of=20try=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/utils/deploy-pokedex.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/utils/deploy-pokedex.js b/code/utils/deploy-pokedex.js index 2e3872c..f228623 100644 --- a/code/utils/deploy-pokedex.js +++ b/code/utils/deploy-pokedex.js @@ -277,10 +277,11 @@ async function deploy() { const ssh = new NodeSSH(); let previousImage = null; let containerExisted = false; + let config = null; try { // Parse arguments - const config = parseArgs(); + config = parseArgs(); const isLocal = config.target === 'local'; const sshConfig = SSH_HOSTS[config.target];