INT-1706 polishing, removed unnecessary 'endsWithIgnoreCase' assertion

This commit is contained in:
Oleg Zhurakousky
2010-12-22 18:38:19 -05:00
parent cfd61c4218
commit d73f254833

View File

@@ -161,7 +161,7 @@ public class FileTransferringMessageHandler extends AbstractMessageHandler {
throws FileNotFoundException, IOException {
FileInputStream fileInputStream = new FileInputStream(file);
if (!StringUtils.endsWithIgnoreCase(remoteDirectory, remoteFileSeparator)) {
if (!remoteDirectory.endsWith(remoteFileSeparator)) {
remoteDirectory += remoteFileSeparator;
}
String remoteFilePath = remoteDirectory + fileName;