Skip to content

Commit

Permalink
chore: suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitf authored Jan 19, 2024
1 parent 3096934 commit 8c1ca21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/backend/src/models/AIConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/messages/MessageProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ type UnaryRPC = (...args: unknown[]) => Promise<unknown>;

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
);
}
Expand Down

0 comments on commit 8c1ca21

Please sign in to comment.