Skip to content

Commit 84039ea

Browse files
committed
get rid of error handling
1 parent 19d524e commit 84039ea

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/react-textarea/src/hooks/useAutocomplete.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ class Debouncer<T extends any[]> {
8787
await this.func(...args, this.activeAbortController.signal);
8888

8989
this.activeAbortController = undefined;
90-
} catch (error: unknown) {
91-
if ((error as Error).name !== "AbortError") {
92-
console.error(error);
93-
}
94-
}
90+
} catch (error) {}
9591
}, this.wait);
9692
};
9793
}

0 commit comments

Comments
 (0)