Skip to content

Commit

Permalink
revert redundant exact optimization (already handled by 'type')
Browse files Browse the repository at this point in the history
  • Loading branch information
tgfisher4 committed Dec 1, 2023
1 parent 5c88fa4 commit 35ec49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,7 @@ export function exact<C extends HasProps>(codec: C, name: string = getExactTypeN
}
return right(stripKeys(ce.right, props))
},
useIdentity(Object.values(props)) ? (a) => stripKeys(a, props) : (a) => codec.encode(stripKeys(a, props)),
(a) => codec.encode(stripKeys(a, props)),
codec
)
}
Expand Down

0 comments on commit 35ec49e

Please sign in to comment.