chore: lint fixes (blank line, useMemo dep)

This commit is contained in:
Teknium
2026-08-14 11:10:11 -07:00
parent cc9358e525
commit bf10349ebd
3 changed files with 4 additions and 1 deletions

View File

@@ -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 })

View File

@@ -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)

View File

@@ -310,7 +310,8 @@ export function useStatusbarItems({
updateApply.stage,
updateStatus?.behind,
updateStatus?.branch,
updateStatus?.currentSha
updateStatus?.currentSha,
updateStatus?.updateAvailable
])
const backendVersionItem = useMemo<StatusbarItem | null>(() => {