Sourcery rule id:
Avoid unneeded ternary statements
const foo = a ? a : b;
const foo = a || b;
It is possible to simplify certain ternary statements into either use of an
This makes the code easier to read, since there is no conditional logic.