Skip to content

Commit 5908656

Browse files
committed
🚨 fix: remove unused error parameters in catch blocks
- Remove unused '_error' parameter in config.ts catch block - Remove unused '_error' parameter in utils.ts catch block - Fixes ESLint warnings about unused variables
1 parent 397d485 commit 5908656

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/cli/src/commands/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function runInteractiveMode() {
8282
? t("config.status.enabled")
8383
: t("config.status.disabled");
8484
ui.log.success(t("config.success.set_validation", { status }));
85-
} catch (_error) {
85+
} catch {
8686
ui.log.error(t("config.error.no_stackcoderc"));
8787
return;
8888
}

packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export async function loadStackCodeConfig(
194194
try {
195195
const configContent = await fs.readFile(configPath, "utf8");
196196
return JSON.parse(configContent) as StackCodeConfig;
197-
} catch (_error) {
197+
} catch {
198198
return {
199199
features: {
200200
commitValidation: false,

0 commit comments

Comments
 (0)