Skip to content

Commit

Permalink
#25696 proper use of optional (#25801)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilvam authored Aug 17, 2023
1 parent 09f9e1e commit f6b4e1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public Experiment forceStart(String experimentId, User user)
cancelScheduledExperimentsUponConflicts(experimentToSave, user);
toReturn = innerStart(experimentToSave, user, false);
} else {
Scheduling scheduling = persistedExperiment.scheduling().get();
Scheduling scheduling = persistedExperiment.scheduling().orElseThrow();
final Experiment experimentToSave = persistedExperiment.withScheduling(scheduling).withStatus(SCHEDULED);

if(runningExperimentOnPage.isPresent()) {
Expand Down

0 comments on commit f6b4e1e

Please sign in to comment.