Skip to content

Commit

Permalink
fix: remove unnecessary if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerhahnekamp committed Jan 18, 2025
1 parent 34fd125 commit c747174
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/signals/src/signal-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1364,9 +1364,7 @@ export function signalStore(
(this as any)[STATE_SOURCE] = innerStore[STATE_SOURCE];

for (const key of Reflect.ownKeys(storeMembers)) {
if (typeof key === 'string' || typeof key === 'symbol') {
(this as any)[key] = storeMembers[key];
}
(this as any)[key] = storeMembers[key];
}

const { onInit, onDestroy } = hooks;
Expand Down

0 comments on commit c747174

Please sign in to comment.