You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2015/02/02 04:06:41 UTC
[4/5] camel git commit: Clean up the code of camel-ftp
Clean up the code of camel-ftp
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5cda388a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5cda388a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5cda388a
Branch: refs/heads/master
Commit: 5cda388af87ac7cb3627e272423a4c1aea1bdf75
Parents: 3058e32
Author: Willem Jiang <wi...@gmail.com>
Authored: Mon Feb 2 11:01:42 2015 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Feb 2 11:02:41 2015 +0800
----------------------------------------------------------------------
.../component/file/remote/RemoteFileIgnoreDoPollErrorTest.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/5cda388a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
index f7e8dd89..bcd4201 100644
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/RemoteFileIgnoreDoPollErrorTest.java
@@ -94,10 +94,8 @@ public class RemoteFileIgnoreDoPollErrorTest {
throw new IllegalStateException("Problem");
} else if ("GenericFileOperationFailedException".equals(doPollResult)) {
throw new GenericFileOperationFailedException("Perm error");
- } else if ("true".equals(doPollResult)) {
- return true;
} else {
- return false;
+ return "true".equals(doPollResult);
}
}
@Override