about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-07-12 12:02:00 +0000
committerGitHub <noreply@github.com>2023-07-12 12:02:00 +0000
commitddce1ebd78ca315445422bcb484284d6e53f5b8e (patch)
tree16a1db39d8c284f6f2ec1752ad5c49f46778728f /pkgs/build-support
parent99152c0f2e2e35bcba16b92af2a25c63d2967487 (diff)
parentbc41da4eb9c0f4a01633006b128a05d4469ec935 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/nix-gitignore/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/nix-gitignore/default.nix b/pkgs/build-support/nix-gitignore/default.nix
index d55465302e44e..f8e673a2a7f50 100644
--- a/pkgs/build-support/nix-gitignore/default.nix
+++ b/pkgs/build-support/nix-gitignore/default.nix
@@ -45,7 +45,7 @@ in rec {
           escs = "\\*?";
           splitString =
             let recurse = str : [(substring 0 1 str)] ++
-                                 (if str == "" then [] else (recurse (substring 1 (stringLength(str)) str) ));
+                                 (lib.optionals (str != "") (recurse (substring 1 (stringLength(str)) str) ));
             in str : recurse str;
           chars = s: filter (c: c != "" && !isList c) (splitString s);
           escape = s: map (c: "\\" + c) (chars s);