IR LED without resistor nano

There is nothing limiting the output current of an Arduino pin. If the user does not take steps to limit the current to 20mA continuous, and limits the time when 40mA is drawn, there is risk of blowing the pin. It's that simple.