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