Skip to content

Commit

Permalink
Removing second reference to same object
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson committed Apr 1, 2016
1 parent 817f96c commit c2b92cd
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ public void triggerBuild(@NotNull PolledTriggerContext context) throws BuildTrig
BuildPromotionEx promotion = (BuildPromotionEx)customizer.createPromotion();
log.debug("Build promotion " + promotion.getId() + " created");

final BuildTypeEx bt = (promotion).getBuildType();

log.debug("Adding '" + bt.toString() + "' to queue");
SQueuedBuild addResult = bt.addToQueue(promotion, jobResult.triggeredBy);
log.debug("Adding '" + buildType.toString() + "' to queue");
SQueuedBuild addResult = ((BuildTypeEx)buildType).addToQueue(promotion, jobResult.triggeredBy);
log.info("Added '" + addResult.toString() + "' to queue");
}
catch(Exception e) {
Expand Down

0 comments on commit c2b92cd

Please sign in to comment.