Using .map for side effects and not using the result might give warnings, and it’s not good practice to do side effects on map. Adding .foreach sugar clearly states the intention of performing an action just for the side effects.
It was suggested on IRC to discuss this change here. It has also been discussed on reddit:
See the related pull request: