Update bundle (with newest rubocop version) and fix offenses
This commit is contained in:
@ -244,9 +244,7 @@ class SubmissionsController < ApplicationController
|
||||
@submission.files.each do |file|
|
||||
content += "#{file.filepath}=#{file.file_id}\n"
|
||||
end
|
||||
File.open(path, 'w+') do |f|
|
||||
f.write(content)
|
||||
end
|
||||
File.write(path, content)
|
||||
path
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user