aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2018-01-18 12:58:37 +0300
committerIgor Pashev <pashev.igor@gmail.com>2018-01-18 12:58:37 +0300
commitf4588208039a735750560eac922471b23804c32d (patch)
tree1febb3bd6aa8f2ae8393f8e44ab91fce56c243bb
parent541f877f3d7a8b1cf9ca3c0cf080a9695887bfc2 (diff)
downloadbbprb-f4588208039a735750560eac922471b23804c32d.tar.gz
BitbucketBuildListener: remove always-true condition
-rw-r--r--src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildListener.java b/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildListener.java
index efcc13a..fc29650 100644
--- a/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildListener.java
+++ b/src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildListener.java
@@ -57,7 +57,7 @@ public class BitbucketBuildListener extends RunListener<AbstractBuild<?, ?>> {
BitbucketBuildTrigger trigger =
build.getProject().getTrigger(BitbucketBuildTrigger.class);
- if ((trigger != null) && (trigger instanceof BitbucketBuildTrigger)) {
+ if (trigger != null) {
return trigger;
} else {
return null;