mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
chore: enable consistent-return
This commit is contained in:
@@ -22,6 +22,7 @@ function scopeRank(scope: typeof pluginRegistryLoaded): number {
|
||||
case "all":
|
||||
return 3;
|
||||
}
|
||||
throw new Error("Unsupported plugin registry scope");
|
||||
}
|
||||
|
||||
function activeRegistrySatisfiesScope(
|
||||
@@ -50,6 +51,7 @@ function activeRegistrySatisfiesScope(
|
||||
case "all":
|
||||
return false;
|
||||
}
|
||||
throw new Error("Unsupported plugin registry scope");
|
||||
}
|
||||
|
||||
export function ensurePluginRegistryLoaded(options?: {
|
||||
|
||||
Reference in New Issue
Block a user