From 434212b81faa81ca7e1cb72b79e22914a46eff82 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 10 Aug 2020 10:59:46 +0200 Subject: [PATCH] Bug 23653: [19.11] Remove uneeded cond test rel_file returns the path anyway Signed-off-by: Tomas Cohen Arazi --- Koha/REST/Plugin/PluginRoutes.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Koha/REST/Plugin/PluginRoutes.pm b/Koha/REST/Plugin/PluginRoutes.pm index d32374d52ea..a0b7caf66fb 100644 --- a/Koha/REST/Plugin/PluginRoutes.pm +++ b/Koha/REST/Plugin/PluginRoutes.pm @@ -48,10 +48,7 @@ sub register { if ( C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins") ) { - my $schema = $app->home->rel_file("api/swagger-v2-schema.json"); - if ($schema){ - $self->{'swagger-v2-schema'} = $schema; - } + $self->{'swagger-v2-schema'} = $app->home->rel_file("api/swagger-v2-schema.json"); # plugin needs to define a namespace @plugins = Koha::Plugins->new()->GetPlugins( -- 2.20.1