Bug 23653: [19.11] Remove uneeded cond test
rel_file returns the path anyway Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
parent
e482ccad93
commit
d32f43039b
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue