Commit d019bcab by Isaac Betesh Committed by Jon Yurek

moved an unless to a separate line to make the following commits more readable

parent b3f43f03
......@@ -113,6 +113,7 @@ module Paperclip
module S3
def self.extended base
unless defined?(AWS_CLASS)
begin
require 'aws-sdk'
const_set('AWS_CLASS', defined?(::Aws) ? ::Aws : ::AWS)
......@@ -124,7 +125,8 @@ module Paperclip
rescue LoadError => e
e.message << " (You may need to install the aws-sdk gem)"
raise e
end unless defined?(AWS_CLASS)
end
end
# Overriding log formatter to make sure it return a UTF-8 string
if defined?(AWS_CLASS::Core::LogFormatter)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment