Fix by Rubocop

Prefer {...} over do...end for single-line blocks.