diff options
author | Akshay <[email protected]> | 2022-02-20 05:59:59 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-02-20 05:59:59 +0000 |
commit | c917670c9193d080fba7e8f5167f0f29752154fa (patch) | |
tree | 71c081edfa7e368d6e15e23be2dea2297275d673 /bin/tests/data | |
parent | 44865fcb29051ac06e981689b8673513690f6f3e (diff) |
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`.
Diffstat (limited to 'bin/tests/data')
-rw-r--r-- | bin/tests/data/useless_has_attr.nix | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ | |||
6 | 6 | ||
7 | # complex body | 7 | # complex body |
8 | (if x ? a then x.a else if b then c else d) | 8 | (if x ? a then x.a else if b then c else d) |
9 | (if x ? a then x.a else b.c) | ||
9 | ] | 10 | ] |