mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
ToHashParser fix for if last is empty but value isn't
This commit is contained in:
parent
cbd78e258c
commit
3ea7770421
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module Fog
|
|||
|
||||
def end_element(name)
|
||||
last = @stack.pop
|
||||
if last.empty?
|
||||
if last.empty? && @value.empty?
|
||||
@stack.last[name.to_sym] = ''
|
||||
elsif @value.empty?
|
||||
@stack.last[name.to_sym] = @value
|
||||
|
|
Loading…
Add table
Reference in a new issue