Pattern: Same assignment in multiple places
Issue: -
Recommends to use a conditional expression instead of assigning to the same thing in each branch of an if statement.
Rationale: This reduces duplication and can eliminate an unnecessary variable declaration.