Fix access to empty output
This commit is contained in:
@ -88,7 +88,7 @@ module SubmissionScoring
|
|||||||
# Return all test results except for those of a linter if not allowed
|
# Return all test results except for those of a linter if not allowed
|
||||||
show_linter = Python20CourseWeek.show_linter? submission.exercise, submission.user_id
|
show_linter = Python20CourseWeek.show_linter? submission.exercise, submission.user_id
|
||||||
outputs&.reject do |output|
|
outputs&.reject do |output|
|
||||||
next if show_linter
|
next if show_linter || output.blank?
|
||||||
|
|
||||||
output[:file_role] == 'teacher_defined_linter'
|
output[:file_role] == 'teacher_defined_linter'
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user