mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-09 20:31: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,
|
||||
)
|
||||
)
|
||||
continue
|
||||
case LVAttr.Health.UNKNOWN:
|
||||
alert_list.append(
|
||||
alerts.Alert(
|
||||
|
|
@ -219,7 +218,6 @@ def raid_check() -> list[alerts.Alert]:
|
|||
severity=alerts.Severity.CRITICAL,
|
||||
)
|
||||
)
|
||||
continue
|
||||
case LVAttr.Health.REFRESH_NEEDED:
|
||||
alert_list.append(
|
||||
alerts.Alert(
|
||||
|
|
@ -228,7 +226,6 @@ def raid_check() -> list[alerts.Alert]:
|
|||
severity=alerts.Severity.WARNING,
|
||||
)
|
||||
)
|
||||
continue
|
||||
case LVAttr.Health.MISMATCHES:
|
||||
alert_list.append(
|
||||
alerts.Alert(
|
||||
|
|
@ -237,6 +234,5 @@ def raid_check() -> list[alerts.Alert]:
|
|||
severity=alerts.Severity.WARNING,
|
||||
)
|
||||
)
|
||||
continue
|
||||
|
||||
return alert_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue