mirror of https://github.com/openclaw/openclaw.git
style(gateway): fix oxfmt formatting and remove unused test helper
This commit is contained in:
parent
747609d7d5
commit
678ea77dcf
|
|
@ -87,12 +87,6 @@ function expectSupportsDeveloperRoleForcedOff(overrides?: Partial<Model<Api>>):
|
||||||
expect(supportsDeveloperRole(normalized)).toBe(false);
|
expect(supportsDeveloperRole(normalized)).toBe(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function expectSupportsUsageInStreamingForcedOff(overrides?: Partial<Model<Api>>): void {
|
|
||||||
const model = { ...baseModel(), ...overrides };
|
|
||||||
delete (model as { compat?: unknown }).compat;
|
|
||||||
const normalized = normalizeModelCompat(model as Model<Api>);
|
|
||||||
expect(supportsUsageInStreaming(normalized)).toBe(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
function expectResolvedForwardCompat(
|
function expectResolvedForwardCompat(
|
||||||
model: Model<Api> | undefined,
|
model: Model<Api> | undefined,
|
||||||
|
|
|
||||||
|
|
@ -684,7 +684,8 @@ export function attachGatewayWsMessageHandler(params: {
|
||||||
hasBrowserOriginHeader,
|
hasBrowserOriginHeader,
|
||||||
sharedAuthOk,
|
sharedAuthOk,
|
||||||
authMethod,
|
authMethod,
|
||||||
}) || shouldSkipControlUiPairing(controlUiAuthPolicy, role, trustedProxyAuthOk);
|
}) ||
|
||||||
|
shouldSkipControlUiPairing(controlUiAuthPolicy, role, trustedProxyAuthOk);
|
||||||
if (device && devicePublicKey && !skipPairing) {
|
if (device && devicePublicKey && !skipPairing) {
|
||||||
const formatAuditList = (items: string[] | undefined): string => {
|
const formatAuditList = (items: string[] | undefined): string => {
|
||||||
if (!items || items.length === 0) {
|
if (!items || items.length === 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue