]> git.koha-community.org Git - koha.git/commit
Bug 29474: Remove one layer of indendation by adding if check in the begginning
authorJoonas Kylmälä <joonas.kylmala@iki.fi>
Sun, 14 Nov 2021 12:10:15 +0000 (12:10 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 4 Feb 2022 19:12:24 +0000 (14:12 -0500)
commit0d7d6478ff23339ba3d6fa5790bea3f8ff7afe6e
tree07190ce1ad53b53f13eee4d777a3b45e62430edf
parent9ad9abade2a5d99d1e94067df7e80fdc1b8ddcc1
Bug 29474: Remove one layer of indendation by adding if check in the begginning

If we simply return "no" immediately from the function when the
checkout is not an autorenewed checkout we can drop one layer of
indendation and the code becomes much easier to read.

To test:
 1) prove t/db_dependent/Circulation.t

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Circulation.pm