Skip to content

Commit a01567a

Browse files
committed
Fixed a SonarQube issue
1 parent b665943 commit a01567a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/github/robtimus/filesystems/ftp/server/ListHiddenFilesCommandHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ private void handle(String path, Session session) {
8383
lines.add(0, getFileSystem().formatDirectoryListing(addDot(getFileSystem().getEntry(path))));
8484
}
8585
String result = StringUtil.join(lines, endOfLine());
86-
result += result.length() > 0 ? endOfLine() : "";
86+
if (!result.isEmpty()) {
87+
result += endOfLine();
88+
}
8789

8890
sendReply(session, ReplyCodes.TRANSFER_DATA_INITIAL_OK);
8991

0 commit comments

Comments
 (0)