1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

simplification

This commit is contained in:
Peter Meier 2011-09-26 17:20:32 +02:00
parent 2d0d85a431
commit 7a3ac7e54f

View file

@ -18,11 +18,7 @@ module Fog
def check_href!(opts = {})
unless href
if opts.is_a?(String)
t = Hash.new
t[:parent] = opts
opts = t
end
opts = { :parent => opts } if opts.is_a?(String)
msg = ":href missing, call with a :href pointing to #{if opts[:message]
opts[:message]
elsif opts[:parent]