Skip to content

Commit

Permalink
[BUGFIX BETA] Fix linting issue in bin/publish.js (#6315)
Browse files Browse the repository at this point in the history
2bd0246
introduced a change to bin/publish.js that failed linting, this fixes
it.
  • Loading branch information
rwjblue authored and igorT committed Aug 9, 2019
1 parent 0a7d338 commit 3bddb0a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,7 @@ function assertGitIsClean() {
}

let expectedChannelBranch =
options.distTag === 'canary'
? 'master'
: options.distTag === 'latest'
? 'release'
: options.distTag;
options.distTag === 'canary' ? 'master' : options.distTag === 'latest' ? 'release' : options.distTag;

if (options.channel === 'lts') {
expectedChannelBranch = `lts-${semver.major(options.currentVersion)}-${semver.minor(options.currentVersion)}`;
Expand Down

0 comments on commit 3bddb0a

Please sign in to comment.