Skip to content

Commit

Permalink
Fix check for IsTrimmable metadata (dotnet#66658)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas authored Mar 15, 2022
1 parent 9296260 commit b971fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private static bool IsTrimmableAssembly(ModuleDesc assembly)
continue;

if (!attribute.FixedArguments[0].Type.IsString
|| ((string)(attribute.FixedArguments[0].Value)).Equals("IsTrimmable", StringComparison.Ordinal))
|| !((string)(attribute.FixedArguments[0].Value)).Equals("IsTrimmable", StringComparison.Ordinal))
continue;

if (!attribute.FixedArguments[1].Type.IsString)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private static bool IsTrimmableAssembly(ModuleDesc assembly)
continue;

if (!attribute.FixedArguments[0].Type.IsString
|| ((string)(attribute.FixedArguments[0].Value)).Equals("IsTrimmable", StringComparison.Ordinal))
|| !((string)(attribute.FixedArguments[0].Value)).Equals("IsTrimmable", StringComparison.Ordinal))
continue;

if (!attribute.FixedArguments[1].Type.IsString)
Expand Down

0 comments on commit b971fe4

Please sign in to comment.