1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

chore: cleanup

This commit is contained in:
sunnylqm 2023-09-06 22:56:41 +08:00
parent ab01312f8d
commit b53878c291
No known key found for this signature in database

View File

@ -132,12 +132,12 @@ function assertRelease() {
}
let lastChecking = Date.now();
let lastResult:CheckResult;
let lastResult: CheckResult;
export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
assertRelease();
const now = Date.now();
if (lastResult && now - lastChecking < 1000 * 60) {
logger('repeated checking, ignored');
// logger('repeated checking, ignored');
return lastResult;
}
lastChecking = now;