lib/reek/cli/yaml_command.rb in reek-1.2.7.1 vs lib/reek/cli/yaml_command.rb in reek-1.2.7.2

- old
+ new

@@ -17,10 +17,10 @@ @examiners = examiners end def execute(view) smells = [] - @examiners.each {|examiner| smells += examiner.all_smells} + @examiners.each {|examiner| smells += examiner.smells} if smells.empty? view.report_success else view.output(smells.to_yaml) view.report_smells