diff --git a/packages/backend/src/models/AIConfig.ts b/packages/backend/src/models/AIConfig.ts index cf8274c1d..bbca2d10e 100644 --- a/packages/backend/src/models/AIConfig.ts +++ b/packages/backend/src/models/AIConfig.ts @@ -32,7 +32,6 @@ export interface AIConfig { } export function isString(value: unknown): value is string { - // eslint-disable-next-line no-null/no-null return (!!value && typeof value === 'string') || value instanceof String; } diff --git a/packages/shared/src/messages/MessageProxy.ts b/packages/shared/src/messages/MessageProxy.ts index f5558557c..663ba318f 100644 --- a/packages/shared/src/messages/MessageProxy.ts +++ b/packages/shared/src/messages/MessageProxy.ts @@ -43,7 +43,6 @@ type UnaryRPC = (...args: unknown[]) => Promise; export function isMessageRequest(content: unknown): content is IMessageRequest { return ( - // eslint-disable-next-line no-null/no-null !!content && typeof content === 'object' && 'id' in content && 'channel' in content ); }