madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21945: LJSUP-12148: JSON-RPC

Committer: sbelyaev
LJSUP-12148: JSON-RPC
U   trunk/cgi-bin/LJ/JSON/RPC.pm
Modified: trunk/cgi-bin/LJ/JSON/RPC.pm
===================================================================
--- trunk/cgi-bin/LJ/JSON/RPC.pm	2012-05-14 10:33:00 UTC (rev 21944)
+++ trunk/cgi-bin/LJ/JSON/RPC.pm	2012-05-14 10:39:28 UTC (rev 21945)
@@ -78,15 +78,9 @@
         $resp_data = $item->response($items->{'result'});
     }
 
-    if ($resp_data) {
-        my $response = LJ::Response::JSON->new();
-        $response->data($resp_data);
-        return $response;
-    } else {
-        my $response = LJ::Response->new();
-        return $response;
-        
-    }
+    my $response = LJ::Response::JSON->new();
+    $response->data($resp_data);
+    return $response;
 }
 
 1;

Tags: livejournal, madeon, pm, sbelyaev
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments