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:
Jason Tedor 2016-08-04 10:03:08 -04:00
parent c08557d033
commit 2936810c63
1 changed files with 1 additions and 1 deletions

View File

@ -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);