Commit 5cf6b178 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

remove todo

parent 0e629c9e
......@@ -98,7 +98,6 @@ public class TasksRepository extends Repository<Task>
Flag flag = taskFlagPair.getValue();
Optional<Team> team = teamsRepository.getTeamByUser(user);
if (team.isPresent()) {
//todo: combine ifs
Solution solution = new Solution(team.get(), task, flag, hashValue);
if (!solutionsRepository.isAlreadySubmittedSolution(solution)) {
solutionsRepository.add(solution);
......
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