Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Dec 8, 2024
1 parent ad0fc0f commit cc0b6cb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions frontend/src/pages/drafts/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ type ScenePerformer = NonNullable<
SceneQuery["findScene"]
>["performers"][number];

type URL = { url: string; site: { id: string } };
const joinURLs = <T extends URL>(
newURL: T | undefined | null,
existingURLs: T[] | undefined,
) =>
uniqBy(
[...(newURL ? [newURL] : []), ...(existingURLs ?? [])],
(u) => `${u.url}-${u.site.id}`,
);

type Entity = { id: string };
const joinImages = <T extends Entity>(
newImage: T | null | undefined,
Expand Down

0 comments on commit cc0b6cb

Please sign in to comment.