Skip to content

Commit e4f60e3

Browse files
committed
Resolve promise with token
1 parent fdd9a9c commit e4f60e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

script/release

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ checkToken()
1919
process.exit(1)
2020
})
2121

22-
2322
function checkToken () {
2423
if (!token) {
2524
return Promise.reject('ELECTRON_API_DEMO_GITHUB_TOKEN environment variable not set\nSet it to a token with repo scope created from https://github.com/settings/tokens/new')
2625
} else {
27-
return Promise.resolve()
26+
return Promise.resolve(token)
2827
}
2928
}
3029

0 commit comments

Comments
 (0)