From 7d934d154e0d5a7cfe4cbbbc81c59e806a808c73 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 8 Sep 2023 12:26:46 +0100 Subject: [PATCH] Bug 33690: Tidy test --- t/db_dependent/api/v1/patrons.t | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t index ee87abcef4..3ca4b36314 100755 --- a/t/db_dependent/api/v1/patrons.t +++ b/t/db_dependent/api/v1/patrons.t @@ -434,17 +434,12 @@ subtest 'add() tests' => sub { sub { if ($extended_attrs_exception) { - if ( $extended_attrs_exception eq 'Koha::Exceptions::Patron::Attribute::NonRepeatable' - or $extended_attrs_exception eq 'Koha::Exceptions::Patron::Attribute::UniqueIDConstraint' - ) + if ( $extended_attrs_exception eq 'Koha::Exceptions::Patron::Attribute::NonRepeatable' + or $extended_attrs_exception eq 'Koha::Exceptions::Patron::Attribute::UniqueIDConstraint' ) { $extended_attrs_exception->throw( - attribute => Koha::Patron::Attribute->new( - { code => $code, attribute => $attr } - ) - ); - } - else { + attribute => Koha::Patron::Attribute->new( { code => $code, attribute => $attr } ) ); + } else { $extended_attrs_exception->throw( type => $type ); } } -- 2.41.0