style(cli): satisfy lint rules in extension path resolver
parent
44bbe09bee
commit
34e78a7054
|
|
@ -27,9 +27,11 @@ function bundledExtensionRootDir() {
|
||||||
path.resolve(here, "../../assets/chrome-extension"),
|
path.resolve(here, "../../assets/chrome-extension"),
|
||||||
];
|
];
|
||||||
for (const candidate of candidates) {
|
for (const candidate of candidates) {
|
||||||
if (hasManifest(candidate)) return candidate;
|
if (hasManifest(candidate)) {
|
||||||
|
return candidate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return candidates[0]!;
|
return candidates[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
function installedExtensionRootDir() {
|
function installedExtensionRootDir() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue