Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
jialinsun committed Mar 6, 2015
1 parent 1f05cf9 commit 100c267
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public boolean addAlert(AlertEntity alert) {
String group = alert.getGroup();
Cat.logEvent("Alert:" + type, group, Event.SUCCESS, alert.toString());

if (m_configManager.isAlertMachine() || true) {
if (m_configManager.isAlertMachine()) {
return m_alerts.offer(alert);
} else {
return true;
Expand Down Expand Up @@ -158,9 +158,9 @@ private boolean send(AlertEntity alert) {
List<String> receivers = m_contactorManager.queryReceivers(alert.getContactGroup(), channel, type);
message = new AlertMessageEntity(group, title, type, content, receivers);

// if (m_senderManager.sendAlert(channel, message)) {
// result = true;
// }
if (m_senderManager.sendAlert(channel, message)) {
result = true;
}
}

String dbContent = Pattern.compile("<div.*(?=</div>)</div>", Pattern.DOTALL).matcher(pair.getValue())
Expand Down

0 comments on commit 100c267

Please sign in to comment.