Skip to content

Commit 5f1f0c5

Browse files
committed
chore: make formatTypeInfo for set one line
1 parent 487e13a commit 5f1f0c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/web/src/features/upload/utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,7 @@ function generateSampleData({
337337
return formatTypeInfo('number', isOptional);
338338
case 'ZodSet':
339339
try {
340-
if (enumValues) {
341-
const enumString = enumValues.join('/');
342-
const possibleEnumOutputs = `SET(${enumString}, ...)`;
343-
return formatTypeInfo(possibleEnumOutputs, isOptional);
344-
}
340+
if (enumValues) return formatTypeInfo(`SET(${enumValues.join('/')}, ...)`, isOptional);
345341

346342
return formatTypeInfo('SET(a,b,c)', isOptional);
347343
} catch {

0 commit comments

Comments
 (0)