about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorJohannes Kirschbauer <hsjobeki@gmail.com>2024-03-15 23:42:48 +0100
committerJohannes Kirschbauer <hsjobeki@gmail.com>2024-03-15 23:42:48 +0100
commit9beef9f1ba3c97c939c38af5c0ea6752fff11bb5 (patch)
tree8ee6f17636cc7d7c3d78c984b605b6664326bbf7 /lib
parentbda93c2221bc4185056723795c62e1b4cc661c4b (diff)
lib.foldl': avoid unnecessary function call
Diffstat (limited to 'lib')
-rw-r--r--lib/lists.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/lists.nix b/lib/lists.nix
index b12b78754a383..d8cf8732d2392 100644
--- a/lib/lists.nix
+++ b/lib/lists.nix
@@ -254,13 +254,11 @@ rec {
   foldl' =
     op:
     acc:
-    list:
-
     # The builtin `foldl'` is a bit lazier than one might expect.
     # See https://github.com/NixOS/nix/pull/7158.
     # In particular, the initial accumulator value is not forced before the first iteration starts.
     builtins.seq acc
-      (builtins.foldl' op acc list);
+      (builtins.foldl' op acc);
 
   /**
     Map with index starting from 0