From 3b79ee42cc4738b83882f550f93130865cf8da49 Mon Sep 17 00:00:00 2001 From: Christopher Brannon Date: Wed, 17 Oct 2018 21:52:27 +0000 Subject: [PATCH] Bug 21503: Simplify If Else logic --- Koha/Template/Plugin/AuthorisedValues.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Koha/Template/Plugin/AuthorisedValues.pm b/Koha/Template/Plugin/AuthorisedValues.pm index a926e0fba4..34cc61998b 100644 --- a/Koha/Template/Plugin/AuthorisedValues.pm +++ b/Koha/Template/Plugin/AuthorisedValues.pm @@ -89,10 +89,8 @@ sub GetDescriptionByKohaField { } elsif ($av->{lib}) { $av_check = $av->{lib} } - } else { - if ($av->{lib}) { - $av_check = $av->{lib} - } + } elsif ($av->{lib}) { + $av_check = $av->{lib} } return $av_check } -- 2.11.0