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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 19 Jan 2022 07:15:04 +0000 (21:15 -1000)
commitc96fee3840ca68508ced69ca9db990cefe2a8c41
tree0b9ad8ea7805154dcd25365498919eacf3181289
parent6f7554754063518cc3399a45b2aaa72d520c8326
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>
C4/Circulation.pm