lib.generators.toGitINI: only define helper variables once

This commit is contained in:
Eman Resu
2026-05-21 16:15:24 -04:00
parent 47a3809152
commit 48a99a99fc
+1 -2
View File
@@ -379,7 +379,6 @@ rec {
See the [git-config documentation](https://git-scm.com/docs/git-config#_variables) for possible values.
*/
toGitINI =
attrs:
let
mkSectionName =
name:
@@ -427,7 +426,7 @@ rec {
toINI_ = toINI { inherit mkKeyValue mkSectionName; };
in
toINI_ (gitFlattenAttrs attrs);
attrs: toINI_ (gitFlattenAttrs attrs);
/**
`mkKeyValueDefault` wrapper that handles dconf INI quirks.