aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-29 15:46:12 +0800
committerByron Jones <glob@mozilla.com>2015-04-29 15:46:12 +0800
commita75e0696043ffc12529cb8c8592906dd2a2952ec (patch)
treed50a8686f07f34b27a477acbf1bc6f5cae293dbc /Bugzilla/WebService
parentbfd649a5ddc8a47f565df3e7537aaafb7e7dd055 (diff)
downloadbugs-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')
-rw-r--r--Bugzilla/WebService/Server/REST.pm3
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 };
}