fetchurl: Ensure that ‘urls’ is a list
This commit is contained in:
parent
7a51e17775
commit
83ca2c272a
|
@ -66,6 +66,7 @@ in
|
|||
showURLs ? false
|
||||
}:
|
||||
|
||||
assert builtins.isList urls;
|
||||
assert urls != [] -> url == "";
|
||||
assert url != "" -> urls == [];
|
||||
|
||||
|
|
Loading…
Reference in New Issue