瀏覽代碼

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

- the wrong `isEmpty` check causes the rule cannot be deleted
master
Forever杨 Eric Zhao 6 年之前
父節點
當前提交
f4d1ac91cc
共有 1 個檔案被更改,包括 1 行新增1 行删除
  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 查看文件

@@ -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…
取消
儲存