lib/rake/funnel/integration/teamcity/progress_report.rb in rake-funnel-0.21.2 vs lib/rake/funnel/integration/teamcity/progress_report.rb in rake-funnel-0.22.0

- old
+ new

@@ -10,20 +10,16 @@ def initialize # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity super do task_starting do |task, _args| next unless TeamCity.running? - unless TeamCity.rake_runner? - ServiceMessages.block_opened(name: task.name) - end + ServiceMessages.block_opened(name: task.name) unless TeamCity.rake_runner? end task_finished do |task, _args, error| next unless TeamCity.running? - if error.respond_to?(:inner_exception) - error = error.inner_exception - end + error = error.inner_exception if error.respond_to?(:inner_exception) ServiceMessages.build_problem(description: error.message[0..4000 - 1]) if error next if Rake::Funnel::Integration::TeamCity.rake_runner?