optimize(utils): Reduce code indentation and improve readability (#496)
This commit is contained in:
parent
cd9d58d4de
commit
ad2f24707a
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user