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 f6ef4bd8545e31a60fd2c5e8665f057ae1a72741 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Jul 16 18:56:42 2025 -0400 Move comment --- src/main/java/org/apache/commons/net/ftp/FTPClient.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/net/ftp/FTPClient.java b/src/main/java/org/apache/commons/net/ftp/FTPClient.java index 3474a629..8560d004 100644 --- a/src/main/java/org/apache/commons/net/ftp/FTPClient.java +++ b/src/main/java/org/apache/commons/net/ftp/FTPClient.java @@ -1238,10 +1238,9 @@ public class FTPClient extends FTP implements Configurable { // use that to create the parser entryParser = parserFactory.createFileEntryParser(parserKey); entryParserKey = parserKey; - - } else // if no parserKey was supplied, check for a configuration - // in the params, and if it has a non-empty system type, use that. - if (ftpClientConfig != null && !ftpClientConfig.getServerSystemKey().isEmpty()) { + } else if (ftpClientConfig != null && !ftpClientConfig.getServerSystemKey().isEmpty()) { + // if no parserKey was supplied, check for a configuration + // in the params, and if it has a non-empty system type, use that. entryParser = parserFactory.createFileEntryParser(ftpClientConfig); entryParserKey = ftpClientConfig.getServerSystemKey(); } else {