nixos/keepalived: remove unnecessary parentheses

This commit is contained in:
figsoda 2022-11-30 17:59:52 -05:00
parent 7dfc2a1369
commit d1c73c2543

View File

@ -84,13 +84,11 @@ let
''
) vrrpInstances);
virtualIpLine = (ip:
ip.addr
virtualIpLine = ip: ip.addr
+ optionalString (notNullOrEmpty ip.brd) " brd ${ip.brd}"
+ optionalString (notNullOrEmpty ip.dev) " dev ${ip.dev}"
+ optionalString (notNullOrEmpty ip.scope) " scope ${ip.scope}"
+ optionalString (notNullOrEmpty ip.label) " label ${ip.label}"
);
+ optionalString (notNullOrEmpty ip.label) " label ${ip.label}";
notNullOrEmpty = s: !(s == null || s == "");