Bug 23653: Remove uneeded cond test
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Aug 2020 08:59:46 +0000 (10:59 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 26 Aug 2020 12:26:29 +0000 (14:26 +0200)
rel_file returns the path anyway

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/Plugin/PluginRoutes.pm

index 8cc9c47..ec86c0f 100644 (file)
@@ -47,10 +47,7 @@ sub register {
 
     if ( 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(