diff options
author | Scott Olson <scott@solson.me> | 2016-02-18 22:10:43 -0600 |
---|---|---|
committer | Scott Olson <scott@solson.me> | 2016-02-18 22:39:43 -0600 |
commit | 9cf93ba13587dba8116fa99279e51cf60c7bde88 (patch) | |
tree | fde210ce2c297269211d1e0d62d4bc964035e55d /pkgs/build-support/fetchurl | |
parent | 412dd80149e837ef89171f1fe0f0423e3b72aa21 (diff) |
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.
Diffstat (limited to 'pkgs/build-support/fetchurl')
-rw-r--r-- | pkgs/build-support/fetchurl/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 804974954d101..2c802bb3679ce 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -85,8 +85,7 @@ in }: assert builtins.isList urls; -assert urls != [] -> url == ""; -assert url != "" -> urls == []; +assert urls == [] || url == ""; let |