From: luixal Date: Tue, 11 Oct 2022 17:47:48 +0000 (+0200) Subject: Small refactor to remove one redundant line. X-Git-Tag: v22.10.2~17 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=4fe179c53364c21eae3e5507aa7140a701287214;p=github%2Fbastienwirtz%2Fhomer.git Small refactor to remove one redundant line. --- diff --git a/src/components/services/Proxmox.vue b/src/components/services/Proxmox.vue index 092d077..1d2c2c9 100644 --- a/src/components/services/Proxmox.vue +++ b/src/components/services/Proxmox.vue @@ -79,12 +79,11 @@ this.vms.total += vms.data.length; this.vms.running += vms.data.filter( i => i.status === 'running' ).length; this.error = false; - this.loading = false; } catch(err) { console.log(err); - this.loading = false; this.error = true; } + this.loading = false; }, }, };