optimize(utils): Reduce code indentation and improve readability (#496)

This commit is contained in:
青菜白玉汤 2024-06-14 18:24:56 +08:00 committed by GitHub
parent cd9d58d4de
commit ad2f24707a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,10 @@ export function setupAppVersionNotification() {
const buildTime = await getHtmlBuildTime();
if (buildTime !== BUILD_TIME) {
if (buildTime === BUILD_TIME) {
return;
}
isShow = true;
const n = window.$notification?.create({
@ -45,7 +48,6 @@ export function setupAppVersionNotification() {
isShow = false;
}
});
}
});
}