Skip to content

Commit 3bddb0a

Browse files
rwjblueigorT
authored andcommitted
[BUGFIX BETA] Fix linting issue in bin/publish.js (#6315)
2bd0246 introduced a change to bin/publish.js that failed linting, this fixes it.
1 parent 0a7d338 commit 3bddb0a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/publish.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ function assertGitIsClean() {
142142
}
143143

144144
let expectedChannelBranch =
145-
options.distTag === 'canary'
146-
? 'master'
147-
: options.distTag === 'latest'
148-
? 'release'
149-
: options.distTag;
145+
options.distTag === 'canary' ? 'master' : options.distTag === 'latest' ? 'release' : options.distTag;
150146

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

0 commit comments

Comments
 (0)