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:
@@ -151,4 +151,5 @@ export function buildProviderReplayFamilyHooks(
|
||||
}),
|
||||
};
|
||||
}
|
||||
throw new Error("Unsupported provider replay family");
|
||||
}
|
||||
|
||||
@@ -139,6 +139,7 @@ export function buildProviderStreamFamilyHooks(
|
||||
createToolStreamWrapper(ctx.streamFn, ctx.extraParams?.tool_stream !== false),
|
||||
};
|
||||
}
|
||||
throw new Error("Unsupported provider stream family");
|
||||
}
|
||||
|
||||
// Public stream-wrapper helpers for provider plugins.
|
||||
|
||||
@@ -172,4 +172,5 @@ export function buildProviderToolCompatFamilyHooks(family: ProviderToolCompatFam
|
||||
inspectToolSchemas: inspectGeminiToolSchemas,
|
||||
};
|
||||
}
|
||||
throw new Error("Unsupported provider tool compatibility family");
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ function createSearchCredentialFields(
|
||||
setCredentialValue: () => {},
|
||||
};
|
||||
}
|
||||
throw new Error("Unsupported web search credential type");
|
||||
}
|
||||
|
||||
function createConfiguredCredentialFields(
|
||||
|
||||
Reference in New Issue
Block a user