lib/io_streams/s3.rb in iostreams-0.17.1 vs lib/io_streams/s3.rb in iostreams-0.17.2
- old
+ new
@@ -13,10 +13,10 @@
key: uri.path.sub(/\A\//, '')
}
end
def self.load_dependencies
- return unless defined?(::Aws::S3::Resource)
+ return if defined?(::Aws::S3::Resource)
require 'aws-sdk-s3'
rescue LoadError => exc
raise(LoadError, "Install gem 'aws-sdk-s3' to read and write AWS S3 files: #{exc.message}")
end