Skip to content

Commit

Permalink
style: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed Sep 28, 2024
1 parent 7629f6b commit c0ead8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,11 @@ class Type {
});
let projectionFn;
if (!UnionType) {
// either automatic detection or we have a projection function
if (typeof opts.wrapUnions === 'function') {
// we have a projection function
try {
projectionFn = opts.wrapUnions(types);
UnionType = typeof projectionFn !== 'undefined'
// projection function yields a function, we can use an Unwrapped type
? UnwrappedUnionType
: WrappedUnionType;
} catch(e) {
Expand Down

0 comments on commit c0ead8b

Please sign in to comment.