diff options
author | Byron Jones <glob@mozilla.com> | 2015-04-29 15:46:12 +0800 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-04-29 15:46:12 +0800 |
commit | a75e0696043ffc12529cb8c8592906dd2a2952ec (patch) | |
tree | d50a8686f07f34b27a477acbf1bc6f5cae293dbc /Bugzilla/WebService/Server | |
parent | bfd649a5ddc8a47f565df3e7537aaafb7e7dd055 (diff) | |
download | bugs-a75e0696043ffc12529cb8c8592906dd2a2952ec.tar bugs-a75e0696043ffc12529cb8c8592906dd2a2952ec.tar.gz bugs-a75e0696043ffc12529cb8c8592906dd2a2952ec.tar.bz2 bugs-a75e0696043ffc12529cb8c8592906dd2a2952ec.tar.xz bugs-a75e0696043ffc12529cb8c8592906dd2a2952ec.zip |
Bug 1159582: All api responses have unnecessary 'result'
r=wicked,a=glob
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r-- | Bugzilla/WebService/Server/REST.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index cefebd65d..8450a7a28 100644 --- a/Bugzilla/WebService/Server/REST.pm +++ b/Bugzilla/WebService/Server/REST.pm @@ -134,8 +134,7 @@ sub response { # and not a undefined or scalar value. if (!ref $result || blessed($result) - || ref $result ne 'HASH' - || ref $result ne 'ARRAY') + || (ref $result ne 'HASH' && ref $result ne 'ARRAY')) { $result = { result => $result }; } |