Skip to content

Commit

Permalink
Refactor #create_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
kennym committed Aug 12, 2011
1 parent a41de6b commit 5080912
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ideone.rb
Expand Up @@ -135,9 +135,7 @@ def create_dict(items)
items.each do |item|
key = item[:key]
value = item[:value]
if value == {:"@xsi:type"=>"xsd:string"}
value = ""
end
value = "" if value == {:"@xsi:type"=>"xsd:string"}
dict[key] = value
end

Expand Down

0 comments on commit 5080912

Please sign in to comment.