Skip to content

Commit

Permalink
Publishing always fails on circleci electron-userland#1303
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored Feb 25, 2017
1 parent f137193 commit 098818d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/electron-builder/src/publish/PublishManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ function sha256(file: string) {
function isPullRequest() {
// TRAVIS_PULL_REQUEST is set to the pull request number if the current job is a pull request build, or false if it’s not.
function isSet(value: string) {
return value != null && value !== "false"
return value && value !== "false"
}

return isSet(process.env.TRAVIS_PULL_REQUEST) || isSet(process.env.CI_PULL_REQUEST) || isSet(process.env.CI_PULL_REQUESTS)
}
}

0 comments on commit 098818d

Please sign in to comment.