diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamTemplateDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamTemplateDAOImpl.java index 554db721..a4fae45a 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamTemplateDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamTemplateDAOImpl.java @@ -110,10 +110,6 @@ public class ExamTemplateDAOImpl implements ExamTemplateDAO { throw new ResourceNotFoundException(EntityType.EXAM_TEMPLATE, String.valueOf(institutionId)); } - if (defaults.size() != 1) { - throw new IllegalStateException("Expected one default but was: " + defaults.size()); - } - return defaults.get(0); }) .flatMap(this::toDomainModel);