]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1159582: All api responses have unnecessary 'result'
authorByron Jones <glob@mozilla.com>
Wed, 29 Apr 2015 07:45:21 +0000 (15:45 +0800)
committerByron Jones <glob@mozilla.com>
Wed, 29 Apr 2015 07:45:21 +0000 (15:45 +0800)
r=wicked,a=glob

Bugzilla/API/1_0/Server.pm

index 83d09c401fa8d3301a52f473e51f38a6187b5353..4df88a56d41284370dfe41629bb3aa13b8fb6fd2 100644 (file)
@@ -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 };
     }