Fix rubocop warning 'SingleLineBlockParams'