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