Fix Perl warning about $path masking earlier definition
This commit is contained in:
		@@ -170,9 +170,9 @@ sub defaultUriForProduct {
 | 
			
		||||
 | 
			
		||||
sub checkPath {
 | 
			
		||||
    my ($self, $c, $path) = @_;
 | 
			
		||||
    my $path = pathIsInsidePrefix($path, $Nix::Config::storeDir);
 | 
			
		||||
    error($c, "Build product refers outside of the Nix store.") unless defined $path;
 | 
			
		||||
    return $path;
 | 
			
		||||
    my $p = pathIsInsidePrefix($path, $Nix::Config::storeDir);
 | 
			
		||||
    error($c, "Build product refers outside of the Nix store.") unless defined $p;
 | 
			
		||||
    return $p;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user