You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/20 22:33:54 UTC
[commons-jcs] branch master updated: Simplify test.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
The following commit(s) were added to refs/heads/master by this push:
new 92853b3 Simplify test.
92853b3 is described below
commit 92853b3bce97574d541b8536fe351aa1f57311a2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 20 17:33:49 2020 -0500
Simplify test.
---
.../jcs3/auxiliary/lateral/socket/tcp/LateralTCPService.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPService.java b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPService.java
index 81f4eb2..0e89e4b 100644
--- a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPService.java
+++ b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPService.java
@@ -231,11 +231,7 @@ public class LateralTCPService<K, V>
led.command = LateralCommand.GET;
@SuppressWarnings("unchecked") // Need to cast from Object
ICacheElement<K, V> response = (ICacheElement<K, V>)sender.sendAndReceive( led );
- if ( response != null )
- {
- return response;
- }
- return null;
+ return response;
}
else
{