Just return instead of using 'added' variable
Just return instead of using 'added' variable

This is an effort to reduce the duplicated code.

Contributes to issue CURA-3491.

alephobjects/CuraEngine,ROBO3D/CuraEngine,alephobjects/CuraEngine,Ultimaker/CuraEngine,ROBO3D/CuraEngine,ROBO3D/CuraEngine,Ultimaker/CuraEngine,alephobjects/CuraEngine