Bug 33817: (QA follow-up) Fix tidyness

This patch fixes some reported tidyness issues with the patches.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 927c5a8913)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 6c381c20e2)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Tomás Cohen Arazi 2023-07-10 14:31:40 -03:00 committed by Matt Blenkinsop
parent 4a8f592802
commit 91211854c8
2 changed files with 3 additions and 6 deletions

View file

@ -1787,7 +1787,7 @@ sub remove_from_bundle {
my $bundle_host = $self->bundle_host;
return 0 unless $bundle_host; # Should not we raise an exception here?
return 0 unless $bundle_host; # Should not we raise an exception here?
Koha::Exceptions::Item::Bundle::BundleIsCheckedOut->throw if $bundle_host->checkout;

View file

@ -232,8 +232,7 @@ sub add_to_bundle {
}
);
}
elsif ( ref($_) eq 'Koha::Exceptions::Item::Bundle::BundleIsCheckedOut' )
{
elsif ( ref($_) eq 'Koha::Exceptions::Item::Bundle::BundleIsCheckedOut' ) {
return $c->render(
status => 409,
openapi => {
@ -241,9 +240,7 @@ sub add_to_bundle {
error_code => 'bundle_checked_out'
}
);
}
elsif ( ref($_) eq 'Koha::Exceptions::Item::Bundle::ItemIsCheckedOut' )
{
} elsif ( ref($_) eq 'Koha::Exceptions::Item::Bundle::ItemIsCheckedOut' ) {
return $c->render(
status => 409,
openapi => {