Removed unused comma after loop variable
Replaced inject with map
Merge pull request #10076 from choudhuryanupam/master

Removed unused comma after loop variable