Bug 23653: Remove uneeded cond test

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>
(cherry picked from commit 58a30f1b44)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Jonathan Druart 2020-08-10 10:59:46 +02:00 committed by Victor Grousset/tuxayo
parent fa6afdd4e3
commit 102bc73ae9
1 changed files with 1 additions and 4 deletions

View 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(