I think you're right about the history of the code. But it feels like perhaps the intent was to do limit-checking on the input parameter to the function, and so this is a typo? Perhaps such limit-checking is not necessary, and always choosing the 'else' path is perfectly fine in all situations.