Skip to content

The agent that grows with you

style(desktop): blank lines lint wants after the retired-pool removal

Tekniumf9ca754da0d5
diff --git a/apps/desktop/src/store/gateway.ts b/apps/desktop/src/store/gateway.ts
index 0bd7b718a1f..b90ba753003 100644
--- a/apps/desktop/src/store/gateway.ts
+++ b/apps/desktop/src/store/gateway.ts
@@ -457,6 +457,7 @@ function isPrimaryRegistryRoute(connectionId: null | string, profile: string): b
async function ridesPrimaryBackend(connectionId: null | string, profile: string): Promise<boolean> {
const id = String(connectionId ?? '').trim()
const key = normKey(profile)
+
if (!id || !g.primaryConnectionId || id !== g.primaryConnectionId) {
return false
}
@@ -1148,6 +1149,7 @@ async function gatewayForProfile(
): Promise<{ gateway: HermesGateway | null; key: string; release: () => void; scopeProfile: boolean }> {
const key = normKey(profile)
const noRelease = () => undefined
+
if (key === g.primaryProfile) {
return { gateway: g.primaryGateway, key, release: noRelease, scopeProfile: false }
}