From ccdbe78a96df9809f0cdc2184a0fc788bb72c902 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 3 Nov 2023 11:39:40 +0000 Subject: [PATCH] Bug 35247: (follow-up) Perltidy fixes to OldHolds.pm Whitespace changes only. Signed-off-by: Owen Leonard --- Koha/REST/V1/Patrons/OldHolds.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Koha/REST/V1/Patrons/OldHolds.pm b/Koha/REST/V1/Patrons/OldHolds.pm index f26520f68b..25db4c8f23 100644 --- a/Koha/REST/V1/Patrons/OldHolds.pm +++ b/Koha/REST/V1/Patrons/OldHolds.pm @@ -40,12 +40,10 @@ sub list { my $patron = Koha::Patrons->find( $c->param('patron_id') ); - unless ( $patron ) { + unless ($patron) { return $c->render( status => 404, - openapi => { - error => 'Patron not found' - } + openapi => { error => 'Patron not found' } ); } @@ -57,8 +55,7 @@ sub list { status => 200, openapi => $old_holds ); - } - catch { + } catch { $c->unhandled_exception($_); }; } -- 2.30.2