fix formatting

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-07-21 21:54:56 +00:00
parent ea00cf4e6c
commit a141498428
1 changed files with 6 additions and 6 deletions

View File

@ -342,14 +342,14 @@ public class LeaderElector {
if (EventType.None.equals(event.getType())) { if (EventType.None.equals(event.getType())) {
return; return;
} }
if(canceled) { if (canceled) {
log.info("This watcher is not active anymore {}", myNode); log.info("This watcher is not active anymore {}", myNode);
try { try {
zkClient.delete(myNode,-1,true); zkClient.delete(myNode, -1, true);
}catch (KeeperException.NoNodeException nne) { } catch (KeeperException.NoNodeException nne) {
//expected . don't do anything // expected . don't do anything
} catch (Exception e) { } catch (Exception e) {
log.warn("My watched node still exists and can't remove "+myNode, e); log.warn("My watched node still exists and can't remove " + myNode, e);
} }
return; return;
} }