mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
refactor: use null propagation operator
This commit is contained in:
parent
af0f79be14
commit
97f8bf6b26
@ -65,7 +65,7 @@ public static bool ImplementsInterface(this TypeDefinition td, TypeReference bas
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
TypeReference parent = typedef.BaseType;
|
TypeReference parent = typedef.BaseType;
|
||||||
typedef = parent == null ? null : parent.Resolve();
|
typedef = parent?.Resolve();
|
||||||
}
|
}
|
||||||
catch (AssemblyResolutionException)
|
catch (AssemblyResolutionException)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user