lib/meibo/classroom_set.rb in meibo-0.16.0 vs lib/meibo/classroom_set.rb in meibo-0.17.0
- old
+ new
@@ -7,12 +7,10 @@
each do |classroom|
roster.organizations.find(classroom.school_sourced_id)
roster.courses.find(classroom.course_sourced_id)
- if classroom.term_sourced_ids.empty?
- raise DataNotFoundError, "termSourcedIdは1つ以上指定してください"
- end
+ raise DataNotFoundError, "termSourcedIdは1つ以上指定してください" if classroom.term_sourced_ids.empty?
classroom.term_sourced_ids.each do |term_sourced_id|
roster.academic_sessions.find(term_sourced_id)
end
end