diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-22 10:34:58 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-22 10:34:58 +0200 |
| commit | 9cf0c726bf50f55f71b47583c5393ff70ae0480e (patch) | |
| tree | 261ba8c8dee38a5de1279e2abaf1dbc034a1f448 /lib/axlsx | |
| parent | 32e9f95f0d9612db0c906cf675c7df2d637a5aab (diff) | |
| parent | cb20ef68163fa72a568324ea9aed89b2e16a7f87 (diff) | |
| download | caxlsx-9cf0c726bf50f55f71b47583c5393ff70ae0480e.tar.gz caxlsx-9cf0c726bf50f55f71b47583c5393ff70ae0480e.zip | |
Merge pull request #244 from tagliala/chore/remove-ruby-pre-25-code
Remove check needed for Ruby < 2.5
Diffstat (limited to 'lib/axlsx')
| -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 |
