diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2018-01-18 12:58:37 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2018-01-18 12:58:37 +0300 |
commit | f4588208039a735750560eac922471b23804c32d (patch) | |
tree | 1febb3bd6aa8f2ae8393f8e44ab91fce56c243bb /src/main | |
parent | 541f877f3d7a8b1cf9ca3c0cf080a9695887bfc2 (diff) | |
download | bbprb-f4588208039a735750560eac922471b23804c32d.tar.gz |
BitbucketBuildListener: remove always-true condition
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/jenkinsci/plugins/bbprb/BitbucketBuildListener.java | 2 |
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; |