Skip to content

Commit 19b1b99

Browse files
chore: remove no-empty-function suppressions with descriptive noop comments (#158)
1 parent d2e3002 commit 19b1b99

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/ui/src/adapters/openai.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,9 @@ export class OpenAIAdapter implements ProtocolAdapter {
898898
// ChatGPT doesn't support partial/streaming tool input
899899
// Return a no-op unsubscribe function
900900
this.log("debug", "onToolInputPartial is not supported on ChatGPT");
901-
// eslint-disable-next-line @typescript-eslint/no-empty-function
902-
return () => {};
901+
return () => {
902+
/* noop — ChatGPT doesn't support partial tool input */
903+
};
903904
}
904905

905906
// === Bidirectional Tool Support ===

packages/ui/src/client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ export function createAppsClient<T extends ToolDefs = ToolDefs>(
223223
setupSizeChangedNotifications(): () => void {
224224
// Only run in browser environments
225225
if (typeof window === "undefined" || typeof ResizeObserver === "undefined") {
226-
// eslint-disable-next-line @typescript-eslint/no-empty-function
227-
return () => {};
226+
return () => {
227+
/* noop — no ResizeObserver in non-browser env */
228+
};
228229
}
229230

230231
const observer = new ResizeObserver((entries) => {

0 commit comments

Comments
 (0)