Skip to content

Commit

Permalink
helpers: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 1, 2024
1 parent abd1c40 commit 99ebb5f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,24 +161,18 @@ with lib; rec {
# documentation
mkNullableWithRaw = type: mkNullable (maybeRaw type);

mkLua = default: desc: let
defaultDesc = "default: `${default}`";
in
mkLua = default: desc:
mkNullOrLua
(
(optionalString (desc != "") ''
${desc}
'')
+ ''
default: `${default}`
''
);

${defaultDesc}
''
);

mkLuaFn = default: desc: let
defaultDesc = "default: `${default}`";
in
Expand Down

0 comments on commit 99ebb5f

Please sign in to comment.