From 8c1ca215172250d3e19152451599e940bbca4e41 Mon Sep 17 00:00:00 2001 From: Florent BENOIT Date: Fri, 19 Jan 2024 15:14:53 +0100 Subject: [PATCH] chore: suggestions from code review --- packages/backend/src/models/AIConfig.ts | 1 - packages/shared/src/messages/MessageProxy.ts | 1 - 2 files changed, 2 deletions(-) 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 ); }