Skip to content

Commit 06bb597

Browse files
authored
Merge pull request cachix#510 from cachix/fix-508
statix: skip adding `--ignore` if empty
2 parents 6d7586d + 6a3d0eb commit 06bb597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hooks.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -3485,7 +3485,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
34853485
{
34863486
# instead of repeating the option name for each element,
34873487
# create a single option with a space-separated list of unique values.
3488-
mkList = k: v: [ (mkOptionName k) ] ++ lib.unique v;
3488+
mkList = k: v: if v == [ ] then [ ] else [ (mkOptionName k) ] ++ lib.unique v;
34893489
}
34903490
settings;
34913491
in

0 commit comments

Comments
 (0)