camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: Fixed CS. This closes #1178
Date Sun, 18 Sep 2016 08:30:15 GMT
Fixed CS. This closes #1178


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a75455ef
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a75455ef
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a75455ef

Branch: refs/heads/master
Commit: a75455ef49c22a7fa45e00b7ad35802550d57254
Parents: 67386c9
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Sep 18 10:30:03 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Sep 18 10:30:03 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/component/slack/SlackProducer.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a75455ef/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
index a103e2b..5d697ca 100644
--- a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
+++ b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
@@ -24,8 +24,6 @@ import java.util.Map;
 import org.apache.camel.CamelExchangeException;
 import org.apache.camel.Exchange;
 import org.apache.camel.component.slack.helper.SlackMessage;
-import org.apache.camel.component.slack.helper.SlackMessage.Attachment;
-import org.apache.camel.component.slack.helper.SlackMessage.Attachment.Field;
 import org.apache.camel.impl.DefaultProducer;
 import org.apache.camel.util.IOHelper;
 import org.apache.http.HttpResponse;
@@ -54,7 +52,7 @@ public class SlackProducer extends DefaultProducer {
         // Build Helper object
         SlackMessage slackMessage;
         Object payload = exchange.getIn().getBody();
-        if(payload instanceof SlackMessage) {
+        if (payload instanceof SlackMessage) {
             slackMessage = (SlackMessage) payload;
         } else { 
             slackMessage = new SlackMessage();


Mime
View raw message