Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSerth authored and dependabot[bot] committed Sep 30, 2024
1 parent bd6477f commit fe87e61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/testrun_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def self.filter_messages_by_size(testrun, messages)
end
message
end
filtered_messages.select(&:present?)
filtered_messages.compact_blank
end
private_class_method :filter_messages_by_size

Expand Down
2 changes: 1 addition & 1 deletion app/views/exercises/external_users/statistics.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ h1
- file_types.add(ActiveSupport::JSON.encode(file.file_type))
- all_files.push(submission.files)
- all_files.compact_blank!
- file_types.reject!(&:blank?) # rubocop:disable Rails/CompactBlank because it's a set
- file_types.reject!(&:blank?)

.d-none#data data-submissions=ActiveSupport::JSON.encode(submissions) data-files=ActiveSupport::JSON.encode(all_files) data-file-types=ActiveSupport::JSON.encode(file_types)

Expand Down

0 comments on commit fe87e61

Please sign in to comment.