From b1c2cc677b2899be6f3d6acaba77ca863cfecc7d Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Thu, 26 Jan 2023 13:11:50 +0100 Subject: [PATCH] Remove unused variable --- XmlSchemaClassGenerator/ModelBuilder.cs | 4 ++-- XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/XmlSchemaClassGenerator/ModelBuilder.cs b/XmlSchemaClassGenerator/ModelBuilder.cs index 2d94dd12..ec59348b 100644 --- a/XmlSchemaClassGenerator/ModelBuilder.cs +++ b/XmlSchemaClassGenerator/ModelBuilder.cs @@ -633,7 +633,7 @@ XmlSchemaSimpleTypeUnion typeUnion when AllMembersHaveFacets(typeUnion, out base if (facets.Count > 0) { var enumFacets = facets.OfType().ToList(); - + // If a union has enum restrictions, there must be an enum restriction in all parts of the union // If there are other restrictions mixed into the enumeration values, we'll generate a string to play it safe. if (enumFacets.Count > 0 && (baseFacets is null || baseFacets.All(fs => fs.OfType().Any())) && !_configuration.EnumAsString) @@ -921,7 +921,7 @@ private IEnumerable CreatePropertiesForElements(Uri source, TypeM case XmlSchemaElement element when element.ElementSchemaType != null: property = PropertyFromElement(owningTypeModel, element, particle, item, substitute); break; - case XmlSchemaAny any: + case XmlSchemaAny: SimpleModel typeModel = new(_configuration) { ValueType = _configuration.UseXElementForAny ? typeof(XElement) : typeof(XmlElement), diff --git a/XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj b/XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj index 59f5203e..300f744e 100644 --- a/XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj +++ b/XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj @@ -20,8 +20,8 @@ https://github.com/mganss/XmlSchemaClassGenerator/blob/master/LICENSE git git://github.com/mganss/XmlSchemaClassGenerator - XmlSchemaClassGenerator - latest + XmlSchemaClassGenerator + latest true true true