From c917670c9193d080fba7e8f5167f0f29752154fa Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 20 Feb 2022 11:29:59 +0530 Subject: useless_has_attr: do not parenthesize select expressions in fixes `select` expresisons are more tightly binding than `or` expressions, we do not have to parenthesize them when placed next to an `or`. --- bin/tests/data/useless_has_attr.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/tests/data') diff --git a/bin/tests/data/useless_has_attr.nix b/bin/tests/data/useless_has_attr.nix index f4c9fd5..10966ac 100644 --- a/bin/tests/data/useless_has_attr.nix +++ b/bin/tests/data/useless_has_attr.nix @@ -6,4 +6,5 @@ # complex body (if x ? a then x.a else if b then c else d) + (if x ? a then x.a else b.c) ] -- cgit v1.2.3