Make linter happy
This commit is contained in:
parent
20a965d27f
commit
094c1c12f4
1 changed files with 5 additions and 2 deletions
|
@ -25,8 +25,11 @@ function writeRegistryToFile(
|
|||
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
|
||||
scope = github.context.repo.owner;
|
||||
}
|
||||
if (!scope && namePrefix = require('./package').name.match('@[^/]+')) {
|
||||
scope = namePrefix[0];
|
||||
if (!scope) {
|
||||
let namePrefix = require('./package').name.match('@[^/]+');
|
||||
if (namePrefix) {
|
||||
scope = namePrefix[0];
|
||||
}
|
||||
}
|
||||
if (scope && scope[0] != '@') {
|
||||
scope = '@' + scope;
|
||||
|
|
Loading…
Reference in a new issue