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 2023/09/13 13:50:46 UTC

[commons-net] 03/03: Simplify

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

commit 04817c96adfce576b2dacc33ec8f96b230b2a981
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 13 09:50:38 2023 -0400

    Simplify
---
 .../org/apache/commons/net/telnet/TelnetClientFunctionalTest.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java b/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java
index 3c7bb7d4..a41a99dd 100644
--- a/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java
+++ b/src/test/java/org/apache/commons/net/telnet/TelnetClientFunctionalTest.java
@@ -86,9 +86,6 @@ public class TelnetClientFunctionalTest extends TestCase {
             }
         }
 
-        if (readbytes.indexOf(end) >= 0) {
-            return true;
-        }
-        return false;
+        return readbytes.indexOf(end) >= 0;
     }
 }
\ No newline at end of file