[interchange] Exit from subroutine using "return" instead of "next"
David Christensen
interchange-cvs at icdevgroup.org
Thu Jun 22 18:23:09 UTC 2017
commit fe76f0f64dc8093c4b56a933796751f0fb10a78c
Author: David Christensen <david at endpoint.com>
Date: Thu Jun 22 12:21:02 2017 -0500
Exit from subroutine using "return" instead of "next"
lib/Vend/Config.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/Vend/Config.pm b/lib/Vend/Config.pm
index fbba72b..662beec 100644
--- a/lib/Vend/Config.pm
+++ b/lib/Vend/Config.pm
@@ -4982,8 +4982,8 @@ sub map_codedef_to_directive {
my $ref;
my $r;
- next unless $r = $c->{$type};
- next unless $ref = $r->{Routine};
+ return unless $r = $c->{$type};
+ return unless $ref = $r->{Routine};
for(keys %$ref ) {
$cfg->{$_} = $ref->{$_};
More information about the interchange-cvs
mailing list