mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-13 07:10:25 +08:00
优化代码
This commit is contained in:
@@ -57,7 +57,7 @@ func (this *HealthCheckExecutor) Run() ([]*HealthCheckResult, error) {
|
||||
return nil, err
|
||||
}
|
||||
for _, node := range nodes {
|
||||
if node.IsOn != 1 {
|
||||
if !node.IsOn {
|
||||
continue
|
||||
}
|
||||
result := &HealthCheckResult{
|
||||
|
||||
Reference in New Issue
Block a user