Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 21, 2024
1 parent e0c73ab commit 77c528c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,10 +741,7 @@ export function get(signal) {
* @returns {V | undefined}
*/
export function safe_get(signal) {
if (!signal) {
return undefined;
}
return get(signal);
return signal && get(signal);
}

/**
Expand Down

0 comments on commit 77c528c

Please sign in to comment.