Fixed Rubocop offenses with code introduced in my pull request