From be514e8dad27a137ea0c2ce47e9b48c8d11cacc7 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:32:22 -0400 Subject: [PATCH] lib.modules: beta reduce mergeOptionDecls for free --- lib/modules.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/modules.nix b/lib/modules.nix index cf44e3c66854..00d7605e9d9d 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -1038,7 +1038,7 @@ let : 2\. Function argument */ mergeOptionDecls = - loc: opts: + loc: foldl' ( res: opt: @@ -1103,8 +1103,7 @@ let declarations = [ ]; declarationPositions = [ ]; options = [ ]; - } - opts; + }; /** Merge all the definitions of an option to produce the final