modules/editorconfig: remove concatLines usage

Related https://github.com/NixOS/nixpkgs/pull/506077 and
https://github.com/NixOS/nixpkgs/pull/514350
This commit is contained in:
Austin Horstman
2026-05-04 11:46:50 +00:00
committed by Gaétan Lepage
parent d4f718bb02
commit a4ab30928b
+3 -3
View File
@@ -61,13 +61,13 @@
mkProperty = name: function: ''
__editorconfig.properties.${name} = ${function}
'';
propertiesString = lib.concatLines (lib.mapAttrsToList mkProperty cfg.properties);
propertyAssignments = lib.mapAttrsToList mkProperty cfg.properties;
in
lib.mkIf (propertiesString != "" && cfg.enable) ''
lib.mkIf (propertyAssignments != [ ] && cfg.enable) ''
do
local __editorconfig = require('editorconfig')
${propertiesString}
${lib.concatStringsSep "\n" propertyAssignments}
end
'';
};