Skip to content

Commit bd030cf

Browse files
committed
chore: remove duplicated branch
1 parent 1826c19 commit bd030cf

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/common/config.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,10 @@ function commaSeparatedToArray<T extends string[]>(str: string | string[] | unde
275275
}
276276

277277
if (str.length === 1) {
278-
if (str[0]?.indexOf(",") === -1) {
279-
return str.filter((e) => e.trim().length > 0) as T;
280-
} else {
281-
return str[0]
282-
?.split(",")
283-
.map((e) => e.trim())
284-
.filter((e) => e.length > 0) as T;
285-
}
278+
return str[0]
279+
?.split(",")
280+
.map((e) => e.trim())
281+
.filter((e) => e.length > 0) as T;
286282
}
287283

288284
return str as T;

0 commit comments

Comments
 (0)