Skip to content

Commit

Permalink
Get returns nil instead of an empty hash
Browse files Browse the repository at this point in the history
  • Loading branch information
delano committed Apr 19, 2009
1 parent 6de0729 commit 91980e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rudy/aws/sdb.rb
Expand Up @@ -216,6 +216,7 @@ def get_attributes(domain, item)
value = REXML::XPath.first(attr, './Value/text()').to_s
( attributes[key] ||= [] ) << value
end
attributes = nil if attributes.empty?
attributes
end
alias :get :get_attributes
Expand Down

0 comments on commit 91980e0

Please sign in to comment.