Fix Rubocop offenses

This commit is contained in:
Sebastian Serth
2023-09-11 14:10:16 +02:00
parent a542985edd
commit c29256aa81
23 changed files with 27 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ module FileConversion
# Optimize SQL queries: We are first fetching all required file types from the database.
# Then, we store them in a hash, so that we can access them by using their file extension.
file_types = {}
FileType.where(file_extension: files.pluck('extension')).each do |file_type|
FileType.where(file_extension: files.pluck('extension')).find_each do |file_type|
file_types[file_type.file_extension] = file_type
end