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
|
||||
public void 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)) {
|
||||
try {
|
||||
GlobalEventExecutor.INSTANCE.awaitInactivity(5, TimeUnit.SECONDS);
|
||||
|
|
Loading…
Reference in New Issue