resolve rubocop offense in latest version

Rubocop says:

> Pass &:chomp as an argument to map! instead of a block.