From d7e6988c9b7bd7ada8662752ff654e4fde1a1426 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Thu, 2 Apr 2026 14:01:59 -0400 Subject: [PATCH] lib/strings.concatLines: call concatStringsSep directly --- lib/strings.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/strings.nix b/lib/strings.nix index 3e7f16b48af0..961534536517 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -337,7 +337,6 @@ rec { /** Concatenate a list of strings, adding a newline at the end of each one. - Defined as `concatMapStrings (s: s + "\n")`. # Inputs @@ -361,7 +360,7 @@ rec { ::: */ - concatLines = concatMapStrings (s: s + "\n"); + concatLines = str: concatStringsSep "\n" str + "\n"; /** Given string `s`, replace every occurrence of the string `from` with the string `to`.