lib/fog/aliyun/models/storage/file.rb in fog-aliyun-0.3.1 vs lib/fog/aliyun/models/storage/file.rb in fog-aliyun-0.3.2
- old
+ new
@@ -17,14 +17,15 @@
attribute :accept_ranges, aliases: 'Accept-Ranges'
attribute :server, aliases: 'Server'
attribute :object_type, aliases: 'x-oss-object-type'
def body
- attributes[:body] ||= if last_modified
- collection.get(identity).body
- else
- ''
- end
+ attributes[:body] ||=
+ if last_modified
+ collection.get(identity).body
+ else
+ ''
+ end
end
def body=(new_body)
attributes[:body] = new_body
end