Having two branches in the same `if` structure with the same implementation is at best duplicate code, and at worst a coding error.