download-from-binary-cache.pl: Get rid of an uninitialized value warning
Reported by Pablo Costa.
This commit is contained in:
parent
31a551a60f
commit
a4cb62ac25
|
@ -225,7 +225,7 @@ sub getAvailableCaches {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-extra-binary-caches"};
|
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-extra-binary-caches"} // "";
|
||||||
foreach my $url (@untrustedUrls) {
|
foreach my $url (@untrustedUrls) {
|
||||||
next unless scalar(grep { $url eq $_ } @trustedUrls) > 0;
|
next unless scalar(grep { $url eq $_ } @trustedUrls) > 0;
|
||||||
push @urls, $url;
|
push @urls, $url;
|
||||||
|
|
Loading…
Reference in a new issue