fix: whatever man

This commit is contained in:
zkldi
2024-05-26 21:18:00 +01:00
parent 95b9627673
commit aefc36a7a1
+2
View File
@@ -366,6 +366,8 @@ export function AddToSetInRecord<T extends string, V>(
toAdd: V
) {
if (obj[key] !== undefined) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error
// @ts-ignore For some reason, this is not an error in the IDE but is an error in ci. I don't know why.
obj[key].add(toAdd);
} else {
obj[key] = new Set([toAdd]);