fold -> foldr (#1646)
Some checks failed
Test / test-stable (push) Has been cancelled
Test / install-against-stable (push) Has been cancelled
Test / install-flake (push) Has been cancelled
Update website / Build (push) Has been cancelled
Update website / Deploy (push) Has been cancelled

This commit is contained in:
Michael Hoang 2025-11-26 12:44:44 +00:00 committed by GitHub
commit e95de00a47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ in
config = mkIf (cfg.sessions != []) { config = mkIf (cfg.sessions != []) {
launchd.daemons = launchd.daemons =
lib.fold ( s : acc : acc // lib.foldr ( s : acc : acc //
{ {
"autossh-${s.name}" = "autossh-${s.name}" =
let let

View file

@ -11,7 +11,7 @@ let
failedAssertions = map (x: x.message) (filter (x: !x.assertion) config.assertions); failedAssertions = map (x: x.message) (filter (x: !x.assertion) config.assertions);
throwAssertions = res: if (failedAssertions != []) then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" else res; throwAssertions = res: if (failedAssertions != []) then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" else res;
showWarnings = res: fold (w: x: builtins.trace "warning: ${w}" x) res config.warnings; showWarnings = res: foldr (w: x: builtins.trace "warning: ${w}" x) res config.warnings;
in in