diff options
Diffstat (limited to 'pkgs/build-support/checker/default.nix')
-rw-r--r-- | pkgs/build-support/checker/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/checker/default.nix b/pkgs/build-support/checker/default.nix index 4f95c3b95eeb..66f8c45e37bc 100644 --- a/pkgs/build-support/checker/default.nix +++ b/pkgs/build-support/checker/default.nix @@ -8,14 +8,14 @@ with lib; let findInList = p: list: default: - if (list == []) then default else + if list == [] then default else if (p (head list)) then (head list) else findInList p (tail list) default; checkAttrInclusion = s: a: b: ( - if (! isAttrs b) then s else + if ! isAttrs b then s else if (lib.attrByPath ["_type"] "" b) == "option" then "" else findInList (x : x != "") ( map (x: if (x == "servicesProposal") # this attr will be checked at another place ( -> upstart-jobs/default.nix ) |