Fix ZK LeaderInitiator Checkstyle violation
**Cherry-pick to 5.0.x**
This commit is contained in:
@@ -221,7 +221,7 @@ public class LeaderInitiator implements SmartLifecycle {
|
|||||||
*/
|
*/
|
||||||
public Context getContext() {
|
public Context getContext() {
|
||||||
if (this.leaderSelector == null) {
|
if (this.leaderSelector == null) {
|
||||||
return nullContext;
|
return this.nullContext;
|
||||||
}
|
}
|
||||||
return this.context;
|
return this.context;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user