Setting exists equals false instead of not exists
This commit rewrites a boolean expression to check for equality with false instead of negating the existence check.
This commit is contained in:
parent
c08557d033
commit
2936810c63
|
@ -91,7 +91,7 @@ public class PreBuiltTransportClient extends TransportClient {
|
||||||
@Override
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
super.close();
|
super.close();
|
||||||
if (!NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings)
|
if (NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings) == false
|
||||||
|| NetworkModule.TRANSPORT_TYPE_SETTING.get(settings).equals(Netty4Plugin.NETTY_TRANSPORT_NAME)) {
|
|| NetworkModule.TRANSPORT_TYPE_SETTING.get(settings).equals(Netty4Plugin.NETTY_TRANSPORT_NAME)) {
|
||||||
try {
|
try {
|
||||||
GlobalEventExecutor.INSTANCE.awaitInactivity(5, TimeUnit.SECONDS);
|
GlobalEventExecutor.INSTANCE.awaitInactivity(5, TimeUnit.SECONDS);
|
||||||
|
|
Loading…
Reference in New Issue