Merge pull request #3034 from betagouv/remove-useless-file

Remove a useless file
This commit is contained in:
gregoirenovel 2018-11-22 01:56:25 +01:00 committed by GitHub
commit 4c313a6c45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View file

@ -1,9 +1,7 @@
class ClamavService class ClamavService
def self.safe_file?(file_path) def self.safe_file?(file_path)
if Rails.env == 'development' if Rails.env == 'development'
if CLAMAV[:mock?] return true
return CLAMAV[:response]
end
end end
FileUtils.chmod 0666, file_path FileUtils.chmod 0666, file_path

View file

@ -1,4 +0,0 @@
CLAMAV = Hashie::Mash.new ({
mock?: true,
response: true
})