[COOK-3998] fixed rubocop offences that I introduced
more rubocop offences