Clean up upload specs

This commit is contained in:
2023-02-12 21:59:20 +11:00
parent 2b81839127
commit 9075b254e4
2 changed files with 11 additions and 5 deletions

View File

@@ -15,7 +15,6 @@ module Adamantium
def call(file:)
mime = FileMagic.new
type = mime.file(file[:tempfile].path, true)
return Failure(:invalid_file_type) unless VALID_UPLOAD_TYPES.include? type.to_sym