diff --git a/Weaver/Weaver/Extensions.cs b/Weaver/Weaver/Extensions.cs index 2e5267005..413831ea5 100644 --- a/Weaver/Weaver/Extensions.cs +++ b/Weaver/Weaver/Extensions.cs @@ -53,12 +53,11 @@ public static bool ImplementsInterface(this TypeDefinition td, TypeReference bas try { - TypeReference parent = typedef.BaseType; - typedef = parent == null ? null : parent.Resolve(); + typedef = typedef.BaseType?.Resolve(); } catch (AssemblyResolutionException) { - // this can happen for pluins. + // this can happen for plugins. //Console.WriteLine("AssemblyResolutionException: "+ ex.ToString()); break; } @@ -102,4 +101,4 @@ public static bool CanBeResolved(this TypeReference parent) return true; } } -} \ No newline at end of file +}