mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-25 12:33:04 +00:00
fix: remove redundant config clone casts
This commit is contained in:
@@ -207,7 +207,7 @@ export async function mutateConfigWithPendingPluginInstalls<T = void>(
|
||||
return await transformConfigWithPendingPluginInstalls<T>({
|
||||
...params,
|
||||
transform: async (currentConfig, context): Promise<ConfigTransformResult<T>> => {
|
||||
const draft = structuredClone(currentConfig) as OpenClawConfig;
|
||||
const draft = structuredClone(currentConfig);
|
||||
const result = (await params.mutate(draft, context)) as T | undefined;
|
||||
return { nextConfig: draft, result };
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user