diff --git a/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm b/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm index 38cbe63296..5753ca27e6 100644 --- a/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm +++ b/lib/NGCP/Panel/Controller/API/ResellerBrandingLogos.pm @@ -37,10 +37,9 @@ sub GET :Allow { my $branding = $item->first->branding; - unless($branding || $branding->logo) { + if(!$branding || !$branding->logo) { $self->error($c, HTTP_NOT_FOUND, "No branding logo available for this reseller"); return; - return; } $c->response->content_type($branding->logo_image_type); $c->response->body($branding->logo);