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:26:26 UTC
[commons-net] branch master updated: Remove useless null-check.
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-net.git
The following commit(s) were added to refs/heads/master by this push:
new 84b898e Remove useless null-check.
84b898e is described below
commit 84b898ec32360fc004467d203f2e91f89db9a1a4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 20 17:26:21 2020 -0500
Remove useless null-check.
---
src/test/java/org/apache/commons/net/tftp/TFTPServer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
index 57d1477..48079ba 100644
--- a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
+++ b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
@@ -758,7 +758,7 @@ public class TFTPServer implements Runnable
}
}
- if (dataPacket != null && dataPacket instanceof TFTPWriteRequestPacket)
+ if (dataPacket instanceof TFTPWriteRequestPacket)
{
// it must have missed our initial ack. Send another.
lastSentAck = new TFTPAckPacket(twrp.getAddress(), twrp.getPort(), 0);