[minor] Remove pointless `if` statement