From fa8875d53caa6658b026e1f0a0ab4ed4be604833 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 28 Mar 2026 20:44:34 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20cloudcmd:=20actions:=20lint=20?= =?UTF-8?q?=E2=98=98=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/distribute/import.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/distribute/import.js b/server/distribute/import.js index 57745c51..131dabde 100644 --- a/server/distribute/import.js +++ b/server/distribute/import.js @@ -7,6 +7,8 @@ import _forEachKey from 'for-each-key'; import log from './log.js'; import * as env from '../env.js'; +const isUndefined = (a) => typeof a === 'undefined'; + const noop = () => {}; const forEachKey = currify(_forEachKey); @@ -58,7 +60,7 @@ const emitAuth = wraptile((importUrl, config, socket) => { const updateConfig = currify((config, data) => { for (const [key, value] of entries(data)) { - if (typeof env.parse(key) !== 'undefined') + if (!isUndefined(env.parse(key))) continue; config(key, value);