mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Simplify fetchurl assertion logic.
The two lines I removed technically assert the exact same thing, since `!a -> b` is equivalent to `a || b`. So, I replaced the two lines with the more symmetric form to make it clearer.
This commit is contained in:
parent
412dd80149
commit
9cf93ba135
@ -85,8 +85,7 @@ in
|
||||
}:
|
||||
|
||||
assert builtins.isList urls;
|
||||
assert urls != [] -> url == "";
|
||||
assert url != "" -> urls == [];
|
||||
assert urls == [] || url == "";
|
||||
|
||||
|
||||
let
|
||||
|
Loading…
Reference in New Issue
Block a user