fix rubocop warning 'SingleLineBlockParams'