mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Remove unnecessary "?? null"
This commit is contained in:
parent
514ffdf324
commit
16d17e01d7
2 changed files with 5 additions and 5 deletions
|
@ -217,7 +217,7 @@ namespace RJW_Menstruation
|
|||
|
||||
if (info != null)
|
||||
{
|
||||
res = info.GetHybridWith(opposite.def.defName) ?? null;
|
||||
res = info.GetHybridWith(opposite.def.defName);
|
||||
}
|
||||
if (res != null) return res;
|
||||
|
||||
|
@ -226,14 +226,14 @@ namespace RJW_Menstruation
|
|||
dna = first.def.GetModExtension<PawnDNAModExtension>();
|
||||
if (dna != null)
|
||||
{
|
||||
res = dna.GetHybridWith(second.def.defName) ?? null;
|
||||
res = dna.GetHybridWith(second.def.defName);
|
||||
}
|
||||
else
|
||||
{
|
||||
dna = second.def.GetModExtension<PawnDNAModExtension>();
|
||||
if (dna != null)
|
||||
{
|
||||
res = dna.GetHybridWith(first.def.defName) ?? null;
|
||||
res = dna.GetHybridWith(first.def.defName);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace RJW_Menstruation
|
|||
|
||||
public PawnKindDef GetHybridWith(string race)
|
||||
{
|
||||
return GetHybridExtension(race)?.ChooseOne() ?? null;
|
||||
return GetHybridExtension(race)?.ChooseOne();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ namespace RJW_Menstruation
|
|||
|
||||
public PawnKindDef GetHybridWith(string race)
|
||||
{
|
||||
return GetHybridExtension(race)?.ChooseOne() ?? null;
|
||||
return GetHybridExtension(race)?.ChooseOne();
|
||||
}
|
||||
|
||||
public void ExposeData()
|
||||
|
|
Loading…
Reference in a new issue