Skip to content

Commit

Permalink
fix: can't use before declared
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil-codecov committed Jul 22, 2021
1 parent 92e98bd commit 57c3a92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/helpers/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ async function uploadToCodecov(uploadURL, token, query, uploadFile, source) {
)
})
.ok(res => res.status === 200)
.then(res => {
return result.res.text
})

return result.res.text
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function main(args) {
// == Step 3: sanitize and set token
const token = await tokenHelpers.getToken(inputs, projectRoot)
if (token === '') {
log('-> No token specified or token is empty')
info('-> No token specified or token is empty')
}

// == Step 4: get network
Expand Down

0 comments on commit 57c3a92

Please sign in to comment.