summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2013-02-04 18:22:02 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2013-02-04 18:22:02 +0000
commit876de7c07deb89be95e311db33146e26f3abb7f1 (patch)
treef3d9fe543644eadfc01ccfeb625497dde2ff1f7f /cpp
parent3c8ef3c772b5f64c51dd858f058be59814b9a7b1 (diff)
downloadqpid-python-876de7c07deb89be95e311db33146e26f3abb7f1.tar.gz
QPID-4564: Fixes decoding in Ruby.
The return type was previously being lost/ignored. Now it is returned properly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1442287 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/bindings/qpid/ruby/lib/qpid_messaging/encoding.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/bindings/qpid/ruby/lib/qpid_messaging/encoding.rb b/cpp/bindings/qpid/ruby/lib/qpid_messaging/encoding.rb
index 19620904be..f04dcea1db 100644
--- a/cpp/bindings/qpid/ruby/lib/qpid_messaging/encoding.rb
+++ b/cpp/bindings/qpid/ruby/lib/qpid_messaging/encoding.rb
@@ -40,13 +40,13 @@ module Qpid
# Decodes and returns the message's content.
def self.decode(message, content_type = nil)
- content_type = message.content_type unless content_type
+ content_type = message.content_type if content_type.nil?
case content_type
when "amqp/map"
- Cqpid.decodeMap message.message_impl
+ return Cqpid.decodeMap message.message_impl
when "amqp/list"
- Cqpid.decodeList message.message_impl
+ return Cqpid.decodeList message.message_impl
end
message.content