Skip to contentSkip to conversation

headerdep: perlcritic warning

PATCH Applied [email protected] 1 participant 1 message Mar 11, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 headerdep: perlcritic warning

From: Stephen Hemminger <[email protected]>

Minor perlcritic warning:
headerdep.pl: "return" statement with explicit "undef" at line 84, column 2. See page 199 of PBP. (Severity: 5)

---

 scripts/headerdep.pl |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
scripts/headerdep.pl renamed from scripts/headerdep.pl~headerdep-perlcritic-warning +1 -2
diff -puN scripts/headerdep.pl~headerdep-perlcritic-warning scripts/headerdep.pl
@@ -80,8 +80,7 @@ sub search {
 		my $path = "$i/$filename";
 		return $path if -f $path;
 	}
-
-	return undef;
+	# not found returns undefined
 }
 
 sub parse_all {

_