Skip to content

Commit 57c3a92

Browse files
fix: can't use before declared
1 parent 92e98bd commit 57c3a92

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/helpers/web.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ async function uploadToCodecov(uploadURL, token, query, uploadFile, source) {
9696
)
9797
})
9898
.ok(res => res.status === 200)
99-
.then(res => {
100-
return result.res.text
101-
})
99+
100+
return result.res.text
102101
}
103102

104103
/**

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async function main(args) {
8888
// == Step 3: sanitize and set token
8989
const token = await tokenHelpers.getToken(inputs, projectRoot)
9090
if (token === '') {
91-
log('-> No token specified or token is empty')
91+
info('-> No token specified or token is empty')
9292
}
9393

9494
// == Step 4: get network

0 commit comments

Comments
 (0)