Skip to content

Commit

Permalink
lib/to-lua: fix allowUnkeyedAttrs option
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Sep 29, 2024
1 parent 2cda50d commit 4e2a022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/to-lua.nix
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ rec {
+ lib.concatStringsSep ("," + introSpace) (
lib.mapAttrsToList (
name: value:
(if allowExplicitEmpty && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ")
(if allowUnkeyedAttrs && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ")
+ lib.addErrorContext "while evaluating an attribute `${name}`" (go (indent + " ") value)
) v
)
Expand Down

0 comments on commit 4e2a022

Please sign in to comment.