Fix wrong empty check in FlowRuleApiPublisher of Sentinel dashboard (#353)
- the wrong `isEmpty` check causes the rule cannot be deleted
This commit is contained in:
parent
25289c287d
commit
f4d1ac91cc
|
|
@ -45,7 +45,7 @@ public class FlowRuleApiPublisher implements DynamicRulePublisher<List<FlowRuleE
|
|||
if (StringUtil.isBlank(app)) {
|
||||
return;
|
||||
}
|
||||
if (rules == null || rules.isEmpty()) {
|
||||
if (rules == null) {
|
||||
return;
|
||||
}
|
||||
Set<MachineInfo> set = appManagement.getDetailApp(app).getMachines();
|
||||
|
|
|
|||
Loading…
Reference in New Issue