Pārlūkot izejas kodu

Fix wrong empty check in FlowRuleApiPublisher of Sentinel dashboard (#353)

- the wrong `isEmpty` check causes the rule cannot be deleted
master
Forever杨 Eric Zhao pirms 6 gadiem
vecāks
revīzija
f4d1ac91cc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      sentinel-dashboard/src/main/java/com/taobao/csp/sentinel/dashboard/rule/FlowRuleApiPublisher.java

+ 1
- 1
sentinel-dashboard/src/main/java/com/taobao/csp/sentinel/dashboard/rule/FlowRuleApiPublisher.java Parādīt failu

@@ -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();


Notiek ielāde…
Atcelt
Saglabāt