Lint fixes

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia authored and Andy Lee committed 2024-10-31 16:48:24 +08:00
1 parent 8d4fde7451
commit 42c8dfa001
214 files changed
+3162 -1298

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@ export default class LonghornNode extends SteveModel {
get used() {
let out = 0;
this.disks.filter(d => d.allowScheduling).map((disk) => {
this.disks.filter((d) => d.allowScheduling).map((disk) => {
if (disk?.storageAvailable && disk?.storageMaximum) {
out += disk.storageMaximum - disk.storageAvailable;
}
@@ -22,8 +22,8 @@ export default class LonghornNode extends SteveModel {
return Object.keys(diskSpec).map((key) => {
const conditions = diskStatus[key]?.conditions || [];
const readyCondition = conditions.find(c => c.type === 'Ready') || {};
const schedulableCondition = conditions.find(c => c.type === 'Schedulable') || {};
const readyCondition = conditions.find((c) => c.type === 'Ready') || {};
const schedulableCondition = conditions.find((c) => c.type === 'Schedulable') || {};
let state;