From daffe920ba96938fb816c2126032243da24272f4 Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Sun, 17 Nov 2024 03:01:40 +0100 Subject: [PATCH] nomoney: remove unused labels These loop control labels are leftovers from an earlier, more complicated, attempt --- plugins/nomoney | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nomoney b/plugins/nomoney index 6fdf69e..3decafc 100644 --- a/plugins/nomoney +++ b/plugins/nomoney @@ -94,7 +94,7 @@ sub hook_checkout_prepare($class, $cart, $username, $transaction_id, @) { my %resolved_balances = %balances; $resolved_balances{$_} += $resolved_deltas->{$_} for keys %$resolved_deltas; - ENTRY: for my $entry ($unresolved->entries) { + for my $entry ($unresolved->entries) { my $single = RevBank::Cart->new; $single->add_entry($entry); my $trial_deltas = $single->deltas($username); @@ -102,7 +102,7 @@ sub hook_checkout_prepare($class, $cart, $username, $transaction_id, @) { my %broke_users; $entry->attribute('nomoney_users', \%broke_users); - ACCOUNT: for my $account (keys %$trial_deltas) { + for my $account (keys %$trial_deltas) { next if RevBank::Users::is_special($account); next if $trial_deltas->{$account} > 0;