ExplanationReading deeply nested conditional code is confusing, since you have to keep track of which
conditions relate to which levels. We therefore strive to reduce nesting where
possible, and the situation where two if conditions can be combined using
and is an easy win.
Merge nested if conditions (
merge-nested-ifs
)i18n.js
Explanation
Reading deeply nested conditional code is confusing, since you have to keep track of which conditions relate to which levels. We therefore strive to reduce nesting where possible, and the situation where twoif
conditions can be combined usingand
is an easy win._Originally posted by @sourcery-ai[bot] in https://github.com/AlaskaAirlines/auro-form/pull/16#discussion_r1821359245_