perlcritic: return undef in list context too
This commit is contained in:
		| @@ -396,7 +396,7 @@ sub pathIsInsidePrefix { | ||||
|  | ||||
|         # ‘..’ should not take us outside of the prefix. | ||||
|         if ($c eq "..") { | ||||
|             return if length($cur) <= length($prefix); | ||||
|             return undef if length($cur) <= length($prefix); | ||||
|             $cur =~ s/\/[^\/]*$// or die; # remove last component | ||||
|             next; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user