Pull Request #2908 - Fix storage log message typo. Thanks to @saz ❤️

https://github.com/zammad/zammad/pull/2908
This commit is contained in:
Mantas Masalskis 2020-01-28 01:44:03 +01:00
parent ca6f5faf12
commit 264853dcbe

View file

@ -19,7 +19,7 @@ class Store::Provider::File
# write file to file system # write file to file system
if !File.exist?(location) if !File.exist?(location)
Rails.logger.debug { "storge write '#{location}' (#{permission})" } Rails.logger.debug { "storage write '#{location}' (#{permission})" }
file = File.new(location, 'wb') file = File.new(location, 'wb')
file.write(data) file.write(data)
file.close file.close
@ -59,7 +59,7 @@ class Store::Provider::File
def self.delete(sha) def self.delete(sha)
location = get_location(sha) location = get_location(sha)
if File.exist?(location) if File.exist?(location)
Rails.logger.info "storge remove '#{location}'" Rails.logger.info "storage remove '#{location}'"
File.delete(location) File.delete(location)
end end