mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
Prettier fix
- Updated the type definition in the `withScrapedPerformerDefaultGender` utility function to improve clarity and maintainability. - Ensured consistency in handling optional gender values for scraped performers. This change enhances the readability of the code related to default gender assignment during performer data processing.
This commit is contained in:
parent
17fe7b1092
commit
178124177e
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ const isScraper = (
|
|||
): scraper is GQL.Scraper => (scraper as GQL.Scraper).id !== undefined;
|
||||
|
||||
function withScrapedPerformerDefaultGender<
|
||||
T extends { gender?: GQL.GenderEnum | null },
|
||||
T extends { gender?: GQL.GenderEnum | null }
|
||||
>(scraped: T, defaultGender: GQL.GenderEnum | null | undefined): T {
|
||||
if (scraped.gender || !defaultGender) {
|
||||
return scraped;
|
||||
|
|
|
|||
Loading…
Reference in a new issue