You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2020/02/29 14:34:24 UTC

[camel] branch master updated: Remove unnecessary null check in QuartzEndpoint (as reported by lgtm.com).

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 97b58b3  Remove unnecessary null check in QuartzEndpoint (as reported by lgtm.com).
97b58b3 is described below

commit 97b58b3660095481b3bf567b69b99ae01a9a906b
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sat Feb 29 15:31:41 2020 +0100

    Remove unnecessary null check in QuartzEndpoint (as reported by lgtm.com).
---
 .../src/main/java/org/apache/camel/component/quartz/QuartzEndpoint.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzEndpoint.java b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzEndpoint.java
index 9b518c3..923fc19 100644
--- a/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzEndpoint.java
+++ b/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzEndpoint.java
@@ -536,7 +536,7 @@ public class QuartzEndpoint extends DefaultEndpoint {
             jobDetail.getJobDataMap().put(QuartzConstants.QUARTZ_TRIGGER_SIMPLE_REPEAT_INTERVAL, interval);
         }
 
-        if (copy != null && copy.size() > 0) {
+        if (copy.size() > 0) {
             LOG.debug("Setting user extra triggerParameters {}", copy);
             setProperties(result, copy);
         }