From 820bc3bf235f7c74db171bc35cfc9651cb1db5d7 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Sat, 30 May 2026 12:12:58 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20Drop=20duplicate=20`get?= =?UTF-8?q?AppConfig`=20import=20in=20`set-balance.js`=20(#13417)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #12669 added `const { getAppConfig } = require('~/server/services/Config');` near the top of `config/set-balance.js` but the same import already existed lower in the file, producing: config/set-balance.js 9:9 error 'getAppConfig' is already defined no-redeclare The fork's sync CI surfaced this when its pre-commit hook ran eslint on the merged file. The upstream `eslint-ci.yml` is path-filtered on `api/**`, `client/**`, and `packages/**` — none of which match `config/**`, which is why CI didn't catch it upstream. Drop the second declaration. Functionally identical, lint clean. No other changes. --- config/set-balance.js | 1 - 1 file changed, 1 deletion(-) diff --git a/config/set-balance.js b/config/set-balance.js index ef1d267f7d..7e5a2ee3e0 100644 --- a/config/set-balance.js +++ b/config/set-balance.js @@ -6,7 +6,6 @@ require('module-alias')({ base: path.resolve(__dirname, '..', 'api') }); const { getAppConfig } = require('~/server/services/Config'); const { askQuestion, silentExit } = require('./helpers'); const connect = require('./connect'); -const { getAppConfig } = require('~/server/services/Config'); (async () => { await connect();