Skip to content

Commit 88cf2bd

Browse files
committed
Unreachable code
getStore() checks for active domain before updating the store.
1 parent 23834ee commit 88cf2bd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/impl/domain.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ export function isInitialized(): boolean {
205205
function updateStore(store: StoreDomainInterface, properties: any) {
206206
const activeDomain = getActiveDomain();
207207

208-
if (!activeDomain) {
209-
throw new Error('No active domain found in store.');
210-
}
211-
212208
const data = mergeDeepRight(store, properties);
213209

214210
logDomain('Updating store.');

0 commit comments

Comments
 (0)