Skip to content

Commit

Permalink
Merge pull request #2 from prozolic/Fix
Browse files Browse the repository at this point in the history
Fixes bug in generator
  • Loading branch information
prozolic authored Feb 20, 2025
2 parents 68eaa06 + 44eff14 commit 980356a
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 980356a

Please sign in to comment.