From 57896f8ef24d3b7814debb58d850fce37d494a2a Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 6 May 2025 20:42:46 +0200 Subject: [PATCH] =?UTF-8?q?MT#62763=20Use=20=C2=ABreturn=C2=BB=20instead?= =?UTF-8?q?=20of=20=C2=ABreturn=20undef=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Warned-by: perlcritic Fixes: Subroutines::ProhibitExplicitReturnUndef Change-Id: If26f11feb4c784126ad8e0adb9575e30e8d3aaa3 --- sandbox/billing_mapping_effective_date.t | 2 +- sandbox/generate_logfile_data_inventory.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sandbox/billing_mapping_effective_date.t b/sandbox/billing_mapping_effective_date.t index a3c32971ff..381d75a29b 100644 --- a/sandbox/billing_mapping_effective_date.t +++ b/sandbox/billing_mapping_effective_date.t @@ -639,7 +639,7 @@ sub get_actual_billing_mapping_old { '+as' => [ 'billing_mapping_id' ], })->first; return $contract->get_column("billing_mapping_id") if $contract; - return undef; + return; } diff --git a/sandbox/generate_logfile_data_inventory.pl b/sandbox/generate_logfile_data_inventory.pl index 201c8024ad..bf2324a52e 100644 --- a/sandbox/generate_logfile_data_inventory.pl +++ b/sandbox/generate_logfile_data_inventory.pl @@ -622,7 +622,7 @@ sub _deserialize_messagesargs { my $args = eval $_line; if ($@) { warn($_line ."\n" .$@); - return undef; + return; } else { return $args; }