Skip to content

Commit 520ded4

Browse files
Sadanand Shenoyjojochuang
authored andcommitted
HDFS-17461. Fix spotbugs in PeerCache#getInternal (#6721).
1 parent 404e059 commit 520ded4

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

  • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/PeerCache.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ public Peer get(DatanodeID dnId, boolean isDomain) {
155155

156156
private synchronized Peer getInternal(DatanodeID dnId, boolean isDomain) {
157157
List<Value> sockStreamList = multimap.get(new Key(dnId, isDomain));
158-
if (sockStreamList == null) {
159-
return null;
160-
}
161-
162158
Iterator<Value> iter = sockStreamList.iterator();
163159
while (iter.hasNext()) {
164160
Value candidate = iter.next();

0 commit comments

Comments
 (0)