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 authored and gcanti committed Dec 3, 2023
1 parent 1236c93 commit 90a3d04
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 90a3d04

Please sign in to comment.