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