Skip to content

Commit

Permalink
Refactor ContrastSummaryController
Browse files Browse the repository at this point in the history
  • Loading branch information
ke4 committed Jun 13, 2024
1 parent 8fcd20a commit 481e14b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@Scope("request")
public class ContrastSummaryController {

private ExperimentTrader experimentTrader;
private final ExperimentTrader experimentTrader;

@Inject
public ContrastSummaryController(ExperimentTrader experimentTrader) {
Expand All @@ -44,7 +44,7 @@ public String getTooltipContrastContent(@RequestParam(value = "experimentAccessi
throw new IllegalArgumentException("No contrast with ID " + contrastId + " found.");
}

ExperimentDesign experimentDesign = differentialExperiment.getExperimentDesign();
ExperimentDesign experimentDesign = experimentTrader.getExperimentDesign(experimentAccession);

ContrastSummary contrastSummary = new ContrastSummaryBuilder()
.withExperimentDesign(experimentDesign)
Expand Down

0 comments on commit 481e14b

Please sign in to comment.