Remove duplicate #to_i check

AFAICT, the second `#to_i` in that line doesn't gain us anything.