Skip to content

Commit

Permalink
Revert "Code style and comment typo fix." (#386)
Browse files Browse the repository at this point in the history
This reverts commit 1fa099f.
  • Loading branch information
paulpach committed Feb 7, 2019
1 parent d1626f7 commit dc3b767
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Weaver/Weaver/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ public static bool ImplementsInterface(this TypeDefinition td, TypeReference bas

try
{
typedef = typedef.BaseType?.Resolve();
TypeReference parent = typedef.BaseType;
typedef = parent == null ? null : parent.Resolve();
}
catch (AssemblyResolutionException)
{
// this can happen for plugins.
// this can happen for pluins.
//Console.WriteLine("AssemblyResolutionException: "+ ex.ToString());
break;
}
Expand Down Expand Up @@ -101,4 +102,4 @@ public static bool CanBeResolved(this TypeReference parent)
return true;
}
}
}
}

0 comments on commit dc3b767

Please sign in to comment.