diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-20 18:23:35 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-20 18:23:35 +0200 |
| commit | cb20ef68163fa72a568324ea9aed89b2e16a7f87 (patch) | |
| tree | a417b81974f18283e6eb7dd04cd0604ad075a484 /lib | |
| parent | 6a4b82def2e94b4811c38c37e606d426710d1e6c (diff) | |
| download | caxlsx-cb20ef68163fa72a568324ea9aed89b2e16a7f87.tar.gz caxlsx-cb20ef68163fa72a568324ea9aed89b2e16a7f87.zip | |
Remove check needed for Ruby < 2.5
Ref: #202
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/util/mime_type_utils.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/axlsx/util/mime_type_utils.rb b/lib/axlsx/util/mime_type_utils.rb index 5dbe0ac5..c2e6909f 100644 --- a/lib/axlsx/util/mime_type_utils.rb +++ b/lib/axlsx/util/mime_type_utils.rb @@ -16,11 +16,7 @@ module Axlsx # @param [String] v URI # @return [String] File mime type def self.get_mime_type_from_uri(v) - if URI.respond_to?(:open) - Marcel::MimeType.for(URI.open(v)) - else - Marcel::MimeType.for(URI.parse(v).open) - end + Marcel::MimeType.for(URI.open(v)) end end end |
