Fix observations by rubocop