mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 07:11:25 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -22,7 +22,9 @@ export function getDefaultCopilotModelIds(): string[] {
|
||||
|
||||
export function buildCopilotModelDefinition(modelId: string): ModelDefinitionConfig {
|
||||
const id = modelId.trim();
|
||||
if (!id) throw new Error("Model id required");
|
||||
if (!id) {
|
||||
throw new Error("Model id required");
|
||||
}
|
||||
return {
|
||||
id,
|
||||
name: id,
|
||||
|
||||
Reference in New Issue
Block a user