Skip to content

Commit

Permalink
0.6.1: Correctly deleting Inline attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-st committed Oct 2, 2021
1 parent 6197023 commit e9bbbbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/InlineMethod.Fody/ModuleWeaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public override void Execute()
foreach (var method in inlineMethods)
{
var attr = GetInlineAttribute(method);
if (attr != null && method.IsPrivate)
if (attr != null)
{
var remove = (bool)attr.ConstructorArguments.Single().Value;
if (remove)
if (remove && method.IsPrivate)
{
method.DeclaringType.Methods.Remove(method);
}
Expand Down
2 changes: 1 addition & 1 deletion src/InlineMethod/InlineMethod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageOutputPath>$(SolutionDir)/../nugets</PackageOutputPath>
<PackageProjectUrl>https://github.com/oleg-st/InlineMethod.Fody</PackageProjectUrl>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Version>0.6</Version>
<Version>0.6.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit e9bbbbf

Please sign in to comment.