Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Sep 27, 2024
1 parent 311e9cb commit b87b040
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void startNextAssessment(int correctionRound) {
new Task.Modal(EditorUtil.getActiveProject(), "Starting Assessment", false) {
@Override
public void run(@NotNull ProgressIndicator progressIndicator) {
startNextAssessment(progressIndicator, correctionRound, gradingConfig.orElseThrow());
startNextAssessment(progressIndicator, correctionRound, gradingConfig.get());
}
}.queue();
}
Expand All @@ -162,7 +162,7 @@ private void startNextAssessment(
"Could not start assessment",
"There are no more submissions to assess. Thanks for your work :)");
} else {
startNextAssessment(progressIndicator, nextAssessment.orElseThrow());
startNextAssessment(progressIndicator, nextAssessment.get());
}
} catch (ArtemisNetworkException e) {
LOG.warn(e);
Expand Down Expand Up @@ -286,7 +286,7 @@ public void run(@NotNull ProgressIndicator progressIndicator) {
progressIndicator.setText("Locking...");
var assessment = submission.tryLock(gradingConfig.get());
if (assessment.isPresent()) {
cloneAssessment(progressIndicator, assessment.orElseThrow());
cloneAssessment(progressIndicator, assessment.get());
} else {
ArtemisUtils.displayGenericErrorBalloon(
"Failed to reopen assessment",
Expand Down

0 comments on commit b87b040

Please sign in to comment.