mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
simplification
This commit is contained in:
parent
2d0d85a431
commit
7a3ac7e54f
1 changed files with 1 additions and 5 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue