Skip to content

Commit

Permalink
Fix wrong empty check in FlowRuleApiPublisher of Sentinel dashboard (#…
Browse files Browse the repository at this point in the history
…353)

- the wrong `isEmpty` check causes the rule cannot be deleted
  • Loading branch information
foreveryang321 authored and sczyh30 committed Dec 28, 2018
1 parent 25289c2 commit f4d1ac9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void publish(String app, List<FlowRuleEntity> rules) throws Exception {
if (StringUtil.isBlank(app)) {
return;
}
if (rules == null || rules.isEmpty()) {
if (rules == null) {
return;
}
Set<MachineInfo> set = appManagement.getDetailApp(app).getMachines();
Expand Down

0 comments on commit f4d1ac9

Please sign in to comment.