mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
remove useless continue clauses from checks
This commit is contained in:
parent
071d8afb9f
commit
93f5404bc1
1 changed files with 0 additions and 4 deletions
|
|
@ -210,7 +210,6 @@ def raid_check() -> list[alerts.Alert]:
|
||||||
severity=alerts.Severity.CRITICAL,
|
severity=alerts.Severity.CRITICAL,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
continue
|
|
||||||
case LVAttr.Health.UNKNOWN:
|
case LVAttr.Health.UNKNOWN:
|
||||||
alert_list.append(
|
alert_list.append(
|
||||||
alerts.Alert(
|
alerts.Alert(
|
||||||
|
|
@ -219,7 +218,6 @@ def raid_check() -> list[alerts.Alert]:
|
||||||
severity=alerts.Severity.CRITICAL,
|
severity=alerts.Severity.CRITICAL,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
continue
|
|
||||||
case LVAttr.Health.REFRESH_NEEDED:
|
case LVAttr.Health.REFRESH_NEEDED:
|
||||||
alert_list.append(
|
alert_list.append(
|
||||||
alerts.Alert(
|
alerts.Alert(
|
||||||
|
|
@ -228,7 +226,6 @@ def raid_check() -> list[alerts.Alert]:
|
||||||
severity=alerts.Severity.WARNING,
|
severity=alerts.Severity.WARNING,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
continue
|
|
||||||
case LVAttr.Health.MISMATCHES:
|
case LVAttr.Health.MISMATCHES:
|
||||||
alert_list.append(
|
alert_list.append(
|
||||||
alerts.Alert(
|
alerts.Alert(
|
||||||
|
|
@ -237,6 +234,5 @@ def raid_check() -> list[alerts.Alert]:
|
||||||
severity=alerts.Severity.WARNING,
|
severity=alerts.Severity.WARNING,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
continue
|
|
||||||
|
|
||||||
return alert_list
|
return alert_list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue