Remove dead code

This commit is contained in:
Artur Beljajev 2019-12-18 05:40:53 +02:00 committed by Alex Sherman
parent 915ebbff08
commit fd95d76c49
3 changed files with 1 additions and 5 deletions

View file

@ -1,5 +1,4 @@
class LegalDocument < ApplicationRecord
cattr_accessor :explicitly_write_file
include EppErrors
MIN_BODY_SIZE = (1.37 * 3.kilobytes).ceil
@ -44,7 +43,7 @@ class LegalDocument < ApplicationRecord
break unless File.file?(path)
end
File.open(path, 'wb') { |f| f.write(binary) } if !Rails.env.test? || self.class.explicitly_write_file
File.open(path, 'wb') { |f| f.write(binary) } if !Rails.env.test?
self.path = path
self.checksum = digest
end