Bug 27715: (QA follow-up) Remove conditional declaration

Resolves:
FAIL critic # Variables::ProhibitConditionalDeclarations: Got 1 violation(s).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c8d14a8087)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2021-02-20 09:57:20 +00:00 committed by Andrew Fuerste-Henry
parent 27f79ee1c0
commit 1bc7b45698
1 changed files with 1 additions and 2 deletions

View File

@ -116,8 +116,7 @@ sub dt_build_orderby {
push @sanitized_orderbys, "$sanitized_identifier $sanitized_direction";
}
my $orderby = " ORDER BY " . join(',', @sanitized_orderbys) . " " if @sanitized_orderbys;
return $orderby;
return " ORDER BY " . join(',', @sanitized_orderbys) . " " if @sanitized_orderbys;
}
=head2 dt_get_params