From 3a7f4fa52848e49dc714ea29f5ef871b39fac6c3 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 Signed-off-by: Fridolin Somers --- 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 57fa3140cf..ae90288fb7 100644 --- a/Koha/Template/Plugin/AuthorisedValues.pm +++ b/Koha/Template/Plugin/AuthorisedValues.pm @@ -88,10 +88,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.25.1