fix: remove 9 unused variables across 4 files

- SnippetsSidebar.tsx: remove 3 unused err variables in catch blocks
- TunnelViewer.tsx: remove 2 unused parameters from callback
- DesktopApp.tsx: remove getCookie import and unused state variables
- HomepageAlertManager.tsx: remove 2 unused err variables in catch blocks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-10-09 20:08:07 +08:00
parent e7f2a4c161
commit 00f72e4168
4 changed files with 10 additions and 23 deletions

View File

@@ -52,7 +52,7 @@ export function HomepageAlertManager({
setAlerts(sortedAlerts);
setCurrentAlertIndex(0);
} catch (err) {
} catch {
const { toast } = await import("sonner");
toast.error(t("homepage.failedToLoadAlerts"));
setError(t("homepage.failedToLoadAlerts"));
@@ -77,7 +77,7 @@ export function HomepageAlertManager({
return Math.max(0, newAlertsLength - 1);
return prevIndex;
});
} catch (err) {
} catch {
setError(t("homepage.failedToDismissAlert"));
}
};