style(cli): satisfy lint rules in extension path resolver

main
Kelvin Calcano 2026-02-04 16:26:03 -04:00 committed by Peter Steinberger
parent 44bbe09bee
commit 34e78a7054
1 changed files with 4 additions and 2 deletions

View File

@ -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() {