Make linter happy
parent
574c6daa52
commit
473cb1b506
|
@ -25,8 +25,11 @@ function writeRegistryToFile(
|
||||||
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
|
if (!scope && registryUrl.indexOf('npm.pkg.github.com') > -1) {
|
||||||
scope = github.context.repo.owner;
|
scope = github.context.repo.owner;
|
||||||
}
|
}
|
||||||
if (!scope && namePrefix = require('./package').name.match('@[^/]+')) {
|
if (!scope) {
|
||||||
scope = namePrefix[0];
|
let namePrefix = require('./package').name.match('@[^/]+');
|
||||||
|
if (namePrefix) {
|
||||||
|
scope = namePrefix[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (scope && scope[0] != '@') {
|
if (scope && scope[0] != '@') {
|
||||||
scope = '@' + scope;
|
scope = '@' + scope;
|
||||||
|
|
Loading…
Reference in New Issue