mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 14:45:46 +00:00
style(cli): satisfy lint rules in extension path resolver
This commit is contained in:
committed by
Peter Steinberger
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user