From 1fa099f402bf668d8f206b8c8909587e719390c5 Mon Sep 17 00:00:00 2001 From: rodolphito Date: Tue, 5 Feb 2019 14:26:41 -0800 Subject: [PATCH] Code style and comment typo fix. --- Weaver/Weaver/Extensions.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 +}