Bonus - all the checks like `geometry.primitiveType !== PrimitiveType.LINE_STRIP` will go away.  If it already has indices, just return, of course.

Less is more.  Less is exceptions is more.