Skip to content

Commit

Permalink
Fixes bug in generator
Browse files Browse the repository at this point in the history
  • Loading branch information
prozolic committed Feb 20, 2025
1 parent 68eaa06 commit 44eff14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VariantEnum/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public sealed class IgnoreVariantAttribute : Attribute
var enumSyntax = node as EnumDeclarationSyntax;
if (enumSyntax == null) return false;

// enum XXXX
// enum XXXXVariant
var enumName = enumSyntax.Identifier.Text;
return enumName.EndsWith("Variant");
return enumName.EndsWith("Variant") && !(enumName == "Variant");
}

return false;
Expand Down

0 comments on commit 44eff14

Please sign in to comment.