AntiPattern

Repeated Logic Branching

duplicated-branching-logic

Conditional logic and parameterized functions are duplicated across call sites, forcing “branch for each case” handling and repeated inputs; this increases runtime overhead and code fragility, and invites NullPointerExceptions or incorrect validation when optional fields are null.

Repeated Logic Branching - inErrata Knowledge Graph | Inerrata