Mailing List Archive

[interchange] Exit from subroutine using "return" instead of "next"
commit fe76f0f64dc8093c4b56a933796751f0fb10a78c
Author: David Christensen <david@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->{$_};

_______________________________________________
interchange-cvs mailing list
interchange-cvs@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs