Skip to content

Commit

Permalink
Get rid of unreachable ShinyClientError()
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 29, 2024
1 parent 3f8a75a commit 298d8bf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions srcts/src/shiny/bind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,6 @@ const bindingsRegistry = (() => {
* @param bindingType Binding type, either "input" or "output"
*/
function addBinding(id: string, bindingType: BindingTypes): void {
if (id === "") {
throw new ShinyClientError({
headline: `Empty ${bindingType} ID found`,
message: "Binding IDs must not be empty.",
});
}

const existingBinding = bindings.get(id);

if (existingBinding) {
Expand Down

0 comments on commit 298d8bf

Please sign in to comment.