refactor(updater): drop the never-matching break-change gate (#8742)

This commit is contained in:
Tunglies
2026-11-27 06:18:37 +00:00
committed by GitHub
parent 1a92ac9c95
commit 385022bd13
27 changed files with 10 additions and 104 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { fetchCacheData, setCacheData, useQuery } from '@/services/query-client'
import { checkUpdateSafe } from '@/services/update'
import { checkForUpdate } from '@/services/update'
import { useVerge } from './use-verge'
@@ -26,7 +26,7 @@ export const useUpdate = (enabled: boolean = true) => {
const shouldCheck = enabled && auto_check_update !== false
const fetchUpdate = async () => {
const result = await checkUpdateSafe()
const result = await checkForUpdate()
updateLastCheckTime()
return result
}