chore: enable consistent-return

This commit is contained in:
Peter Steinberger
2026-04-10 20:56:08 +01:00
parent bc27278d6d
commit 0ebeee8b0d
68 changed files with 223 additions and 107 deletions

View File

@@ -151,4 +151,5 @@ export function buildProviderReplayFamilyHooks(
}),
};
}
throw new Error("Unsupported provider replay family");
}

View File

@@ -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.

View File

@@ -172,4 +172,5 @@ export function buildProviderToolCompatFamilyHooks(family: ProviderToolCompatFam
inspectToolSchemas: inspectGeminiToolSchemas,
};
}
throw new Error("Unsupported provider tool compatibility family");
}

View File

@@ -57,6 +57,7 @@ function createSearchCredentialFields(
setCredentialValue: () => {},
};
}
throw new Error("Unsupported web search credential type");
}
function createConfiguredCredentialFields(