Skip to content

Commit

Permalink
🍻 chore: remove duplicate logic (lobehub#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 authored Dec 13, 2023
1 parent 50a1c39 commit cb91985
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/store/middleware/createHyperStorage/keyMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export const createKeyMapper = (options: HyperStorageOptions) => {

let storageKey: string | undefined;

if (!selectors) return key;

for (const selector of selectors) {
if (typeof selector === 'string') {
if (selector === key) storageKey = key;
Expand Down

0 comments on commit cb91985

Please sign in to comment.