lib/attractor/reporters/console_reporter.rb in attractor-0.6.1 vs lib/attractor/reporters/console_reporter.rb in attractor-1.0.0
- old
+ new
@@ -8,14 +8,14 @@
puts 'Calculated churn and complexity'
puts
puts "file_path#{' ' * 53}complexity churn"
puts '-' * 80
- puts @values.map(&:to_s)
+ puts @values&.map(&:to_s)
puts
puts 'Suggestions for refactorings:'
- @suggestions.each { |sug| puts sug.file_path }
+ @suggestions&.each { |sug| puts sug.file_path }
puts
end
end
end