Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2021-12-28 18:46:05 +00:00
parent c6587706e6
commit fea1b5b88d
11 changed files with 41 additions and 27 deletions

View file

@ -101,7 +101,7 @@ module Api
filename = "/tmp/#{rand}"
# ...and save the uploaded file to that location
File.open(filename, "wb") { |f| f.write(file.read) }
File.binwrite(filename, file.read)
# Create the trace object, falsely marked as already
# inserted to stop the import daemon trying to load it