Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Restructure upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Aug 17, 2021
1 parent 224db0e commit 5e5daa2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/codecov/uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,12 @@ def self.upload(report, disable_net_blockers = true)
response = false
end

if response == false
raise StandardError.new report unless ::Codecov.pass_ci_if_error

report['result'] = { 'uploaded' => false }
return report
end

report['result'] = { 'uploaded' => false } unless response
report['result'] = JSON.parse(response)
handle_report_response(report)

net_blockers(:on) if disable_net_blockers
raise StandardError.new '' unless ::Codecov.pass_ci_if_error
report
end

Expand Down

0 comments on commit 5e5daa2

Please sign in to comment.