mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 22:30:42 +00:00
refactor(lint): enable map spread rule
This commit is contained in:
@@ -28,8 +28,7 @@ function loadPluginRuntime(): PluginRuntimeModule | null {
|
||||
}
|
||||
|
||||
export function resolveRuntimeCliBackends(): PluginCliBackendEntry[] {
|
||||
return (loadPluginRuntime()?.getActivePluginRegistry()?.cliBackends ?? []).map((entry) => ({
|
||||
...entry.backend,
|
||||
pluginId: entry.pluginId,
|
||||
}));
|
||||
return (loadPluginRuntime()?.getActivePluginRegistry()?.cliBackends ?? []).map((entry) =>
|
||||
Object.assign({}, entry.backend, { pluginId: entry.pluginId }),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user