From f4588208039a735750560eac922471b23804c32d Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Thu, 18 Jan 2018 12:58:37 +0300 Subject: BitbucketBuildListener: remove always-true condition --- src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') 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> { BitbucketBuildTrigger trigger = build.getProject().getTrigger(BitbucketBuildTrigger.class); - if ((trigger != null) && (trigger instanceof BitbucketBuildTrigger)) { + if (trigger != null) { return trigger; } else { return null; -- cgit v1.2.3