diff --git a/Koha/Account.pm b/Koha/Account.pm index 6e63242eb9..09cf0ad8ce 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -317,10 +317,8 @@ sub add_credit { Koha::Exceptions::Account::UnrecognisedType->throw( error => 'Type of credit not recognised' ); } - else { - $_->rethrow; - } } + $_->rethrow; }; return $line;