chore: lint fixes (blank line, useMemo dep)
This commit is contained in:
@@ -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 })
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -310,7 +310,8 @@ export function useStatusbarItems({
|
||||
updateApply.stage,
|
||||
updateStatus?.behind,
|
||||
updateStatus?.branch,
|
||||
updateStatus?.currentSha
|
||||
updateStatus?.currentSha,
|
||||
updateStatus?.updateAvailable
|
||||
])
|
||||
|
||||
const backendVersionItem = useMemo<StatusbarItem | null>(() => {
|
||||
|
||||
Reference in New Issue
Block a user