rspec/rules/S3358/description.adoc

8 lines
229 B
Plaintext
Raw Permalink Normal View History

Nested ternaries are hard to read and can make the order of operations complex to understand.
2020-06-30 12:48:39 +02:00
include::{noncompliant}[]
2021-02-02 15:02:10 +01:00
Instead, use another line to express the nested operation in a separate statement.
include::{compliant}[]