Skip to content

Commit 6c16f1e

Browse files
committed
lint
1 parent 9b9d161 commit 6c16f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/v2/include.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const includeSchema = v.object({
1010
v.string(),
1111
v.regex(/^[\-a-z,]+$/, "Invalid `include` query"),
1212
v.transform((value) => value.split(",")),
13-
v.transform((sources) => (sources.length > 1 ? Array.from(new Set(sources)) : sources)),
13+
v.transform((sources) => (sources.length > 1 ? [...new Set(sources)] : sources)),
1414
v.minLength(1),
1515
v.maxLength(allSources.length),
1616
),

0 commit comments

Comments
 (0)