Commit a75e0696 authored by Byron Jones's avatar Byron Jones

Bug 1159582: All api responses have unnecessary 'result'

r=wicked,a=glob
parent bfd649a5
...@@ -134,8 +134,7 @@ sub response { ...@@ -134,8 +134,7 @@ sub response {
# and not a undefined or scalar value. # and not a undefined or scalar value.
if (!ref $result if (!ref $result
|| blessed($result) || blessed($result)
|| ref $result ne 'HASH' || (ref $result ne 'HASH' && ref $result ne 'ARRAY'))
|| ref $result ne 'ARRAY')
{ {
$result = { result => $result }; $result = { result => $result };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment