From c027dc08134c594b312fb1fdd9ddcd9e36ce65af Mon Sep 17 00:00:00 2001 From: Haile <118998054+blackmammoth@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:21:05 +0300 Subject: [PATCH 1/2] fix: remove unused var Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- server/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/index.js b/server/index.js index 60f14311..ac624425 100755 --- a/server/index.js +++ b/server/index.js @@ -86,8 +86,6 @@ const installMode = fs.existsSync(path.join(APP_ROOT, '.git')) ? 'git' : 'npm'; console.log('SERVER_PORT from env:', process.env.SERVER_PORT); -const VALID_PROVIDERS = ['claude', 'codex', 'cursor', 'gemini']; - const app = express(); const server = http.createServer(app); From 714c9214e684d597778cb3873ede4af952863441 Mon Sep 17 00:00:00 2001 From: Haile <118998054+blackmammoth@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:21:53 +0300 Subject: [PATCH 2/2] Potential fix for pull request finding 'Useless assignment to local variable' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- .../modules/database/repositories/notification-preferences.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/database/repositories/notification-preferences.ts b/server/modules/database/repositories/notification-preferences.ts index ca24ca54..6ba21976 100644 --- a/server/modules/database/repositories/notification-preferences.ts +++ b/server/modules/database/repositories/notification-preferences.ts @@ -64,7 +64,7 @@ export const notificationPreferencesDb = { return defaults; } - let parsed: unknown = DEFAULT_NOTIFICATION_PREFERENCES; + let parsed: unknown; try { parsed = JSON.parse(row.preferences_json); } catch {