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

Commit

Permalink
fix: Test if response has two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Jul 18, 2021
1 parent 0ca520b commit f4d24cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/codecov.js
Expand Up @@ -209,6 +209,8 @@ var sendToCodecovV4 = function (
on_success,
on_failure
)
} else if (result.split('\n').length !== 2) {
console.log(' Could not upload to Codecov: ' + result)
} else {
var codecov_report_url = result.split('\n')[0]
request(
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4d24cc

Please sign in to comment.