From f07fe8f2fee546b4d8975b23d9f264f1fdaec3f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 4 Nov 2014 16:28:41 +0100 Subject: [PATCH] Doppelte if-Abfrage entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit zum Commit von gerade: unnötig zweimal auf $qty zu prüfen --- bin/mozilla/do.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index d33baa3b1..8f0ea4c8e 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -1599,7 +1599,7 @@ sub transfer_in_out_default { $qty = 0 if (!$::instance_conf->get_transfer_default_services && !defined($part_info_map{$form->{"id_$i"}}->{inventory_accno_id}) && !$part_info_map{$form->{"id_$i"}}->{assembly}); $qty_parts{$form->{"id_$i"}} += $qty; if ($qty == 0) { - delete $qty_parts{$form->{"id_$i"}} if $qty == 0; + delete $qty_parts{$form->{"id_$i"}}; undef $form->{"stock_in_$i"}; } -- 2.20.1