Skip to content

Commit 6a3d0eb

Browse files
committed
statix: skip adding --ignore if empty
1 parent 6d7586d commit 6a3d0eb

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)