summaryrefslogtreecommitdiffstats
path: root/Bugzilla/API
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-29 09:45:21 +0200
committerByron Jones <glob@mozilla.com>2015-04-29 09:45:21 +0200
commit27398a737a070decdaa013dd20897c94f84ccfa5 (patch)
tree35a3ad7e8b4fcd10258b25632278143475b3cf0d /Bugzilla/API
parent3f29df21b81bba2d075a369cd1634da26f5d9926 (diff)
downloadbugzilla-27398a737a070decdaa013dd20897c94f84ccfa5.tar.gz
bugzilla-27398a737a070decdaa013dd20897c94f84ccfa5.tar.xz
Bug 1159582: All api responses have unnecessary 'result'
r=wicked,a=glob
Diffstat (limited to 'Bugzilla/API')
-rw-r--r--Bugzilla/API/1_0/Server.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm
index 83d09c401..4df88a56d 100644
--- a/Bugzilla/API/1_0/Server.pm
+++ b/Bugzilla/API/1_0/Server.pm
@@ -93,8 +93,7 @@ sub handle {
# 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 };
}