Commit fc2fc6cd authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

cleanup

parent 617f2d6d
...@@ -49,7 +49,7 @@ public class SolutionsResource ...@@ -49,7 +49,7 @@ public class SolutionsResource
.stream() .stream()
.filter(taskFlag -> taskFlag.getValue().equals(userFlag)) .filter(taskFlag -> taskFlag.getValue().equals(userFlag))
.findFirst() .findFirst()
.orElseThrow(InvalidSolutionException::new); //what will be returned? .orElseThrow(InvalidSolutionException::new);
solutionsRepository.submitSolution(new Solution(teamsRepository.getTeamByUser(user), task, flag)); solutionsRepository.submitSolution(new Solution(teamsRepository.getTeamByUser(user), task, flag));
return Response.ok().build(); return Response.ok().build();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment