Remove unnecessary null check

This commit is contained in:
Marcell Fülöp 2022-06-19 16:39:46 +00:00
parent 991cf0bf5a
commit cf25dbce4a
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ export default {
this.overrideUpdateInterval = 30;
},
updated() {
const load = this?.server?.nextcloud?.system?.cpuload;
const load = this.server?.nextcloud?.system?.cpuload;
if (load) this.updateCpuLoad(load);
const sys = this.server.nextcloud.system;
if (sys) this.updateMemoryGauge(sys);