Skip to content

Commit

Permalink
refactor: remove if children guard clause
Browse files Browse the repository at this point in the history
  • Loading branch information
braden-w committed Dec 17, 2024
1 parent b72b174 commit 5e39808
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/app/src/lib/components/WhisperingButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ let {
<Tooltip.Trigger>
{#snippet child()}
<Button {...restProps}>
{#if children}
{@render children()}
{/if}
{@render children?.()}
<span class="sr-only">{tooltipText}</span>
</Button>
{/snippet}
Expand Down

0 comments on commit 5e39808

Please sign in to comment.