Skip to content

The agent that grows with you

chore: lint fixes (blank line, useMemo dep)

Tekniumbf10349ebd01
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index b6e64feb1f0..714643c3cc7 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -2579,6 +2579,7 @@ async function checkUpdates() {
// compare API when possible; otherwise behind stays null ("update
// available, count unknown") and updateAvailable carries the signal.
const upToDate = Boolean(currentSha && currentSha === targetSha)
+
const sshBehind = upToDate
? 0
: await fetchCompareBehindCount({ currentSha, originUrl: OFFICIAL_REPO_HTTPS_URL, targetSha })
diff --git a/apps/desktop/electron/update-count.ts b/apps/desktop/electron/update-count.ts
index d1b8630a063..adf19f9d147 100644
--- a/apps/desktop/electron/update-count.ts
+++ b/apps/desktop/electron/update-count.ts
@@ -63,6 +63,7 @@ function compareApiUrl({ currentSha, originUrl, targetSha }) {
function canonicalRemoteForCompare(originUrl) {
const value = String(originUrl || '').trim()
+
const match =
/^git@github\.com:([^/]+\/[^/]+?)(?:\.git)?\/?$/i.exec(value) ||
/^(?:ssh:\/\/git@|https:\/\/|http:\/\/)github\.com\/([^/]+\/[^/]+?)(?:\.git)?\/?$/i.exec(value)
diff --git a/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx b/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx
index 3a810978624..26c33b094f3 100644
--- a/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx
+++ b/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx
@@ -310,7 +310,8 @@ export function useStatusbarItems({
updateApply.stage,
updateStatus?.behind,
updateStatus?.branch,
- updateStatus?.currentSha
+ updateStatus?.currentSha,
+ updateStatus?.updateAvailable
])
const backendVersionItem = useMemo<StatusbarItem | null>(() => {