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

@@ -38,19 +38,19 @@ export default class HciLB extends HarvesterResource {
get subnetDisplay() {
const ranges = this.spec?.ranges || [];
return ranges.map(r => r.subnet).join(', ');
return ranges.map((r) => r.subnet).join(', ');
}
get startIPDisplay() {
const ranges = this.spec?.ranges || [];
return ranges.filter(r => r.startIP).map(r => r.startIP).join(', ');
return ranges.filter((r) => r.startIP).map((r) => r.startIP).join(', ');
}
get endIPDisplay() {
const ranges = this.spec?.ranges || [];
return ranges.filter(r => r.endIP).map(r => r.endIP).join(', ');
return ranges.filter((r) => r.endIP).map((r) => r.endIP).join(', ');
}
get details() {
@@ -81,7 +81,7 @@ export default class HciLB extends HarvesterResource {
}
get isReady() {
const readyCondition = (this?.status?.conditions || []).find(c => c.type === 'Ready') || {};
const readyCondition = (this?.status?.conditions || []).find((c) => c.type === 'Ready') || {};
return readyCondition?.status === 'True';
}