Lint fixes

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:20 +01:00
parent 19b11aac2c
commit 4626d56acd
214 changed files with 3162 additions and 1298 deletions
@@ -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';
}