소스 검색

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…
취소
저장