treewide: drop redundant parentheses and eta-expand

This commit is contained in:
2026-07-24 15:28:35 +08:00
parent 9a493b48b9
commit fdabea8247
3 changed files with 11 additions and 14 deletions
+3 -3
View File
@@ -19,8 +19,8 @@ let
with lib;
with fileset;
let
excludedFiles = filter (path: pathIsRegularFile path) exclude;
excludedDirs = filter (path: pathIsDirectory path) exclude;
excludedFiles = filter pathIsRegularFile exclude;
excludedDirs = filter pathIsDirectory exclude;
isExcluded =
path:
(elem path excludedFiles)
@@ -39,7 +39,7 @@ let
) (builtins.readDir path)
) (unique (if path == null then paths else [ path ] ++ paths))
))
++ (if recursive then concatMap (path: toList path) (unique include) else unique include)
++ (if recursive then concatMap toList (unique include) else unique include)
);
in
umport