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:
Scott Olson 2016-02-18 22:10:43 -06:00
parent 412dd80149
commit 9cf93ba135

View File

@ -85,8 +85,7 @@ in
}:
assert builtins.isList urls;
assert urls != [] -> url == "";
assert url != "" -> urls == [];
assert urls == [] || url == "";
let