Apply automatic rubocop fixes

This commit is contained in:
Sebastian Serth
2021-05-14 10:51:44 +02:00
parent fe4000916c
commit 6cbecb5b39
440 changed files with 2705 additions and 1853 deletions

View File

@@ -39,7 +39,7 @@ module ProformaService
def import_multi
Zip::File.open(@zip.path) do |zip_file|
zip_files = zip_file.filter { |entry| entry.name.match?(/\.zip$/) }
zip_files = zip_file.filter {|entry| entry.name.match?(/\.zip$/) }
begin
zip_files.map! do |entry|
store_zip_entry_in_tempfile entry
@@ -65,7 +65,7 @@ module ProformaService
zip_file.map(&:name)
end
filenames.select { |f| f[/\.xml$/] }.any?
filenames.select {|f| f[/\.xml$/] }.any?
rescue Zip::Error
raise Proforma::InvalidZip
end