Skip to content

Commit

Permalink
statix: skip adding --ignore if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Oct 11, 2024
1 parent 6d7586d commit 6a3d0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3485,7 +3485,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
{
# instead of repeating the option name for each element,
# create a single option with a space-separated list of unique values.
mkList = k: v: [ (mkOptionName k) ] ++ lib.unique v;
mkList = k: v: if v == [ ] then [ ] else [ (mkOptionName k) ] ++ lib.unique v;
}
settings;
in
Expand Down

0 comments on commit 6a3d0eb

Please sign in to comment.