Committer: sbelyaev
LJSUP-12148: JSON-RPCU 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;