Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Jan 26, 2023
1 parent b021402 commit b1c2cc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions XmlSchemaClassGenerator/ModelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ XmlSchemaSimpleTypeUnion typeUnion when AllMembersHaveFacets(typeUnion, out base
if (facets.Count > 0)
{
var enumFacets = facets.OfType<XmlSchemaEnumerationFacet>().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<XmlSchemaEnumerationFacet>().Any())) && !_configuration.EnumAsString)
Expand Down Expand Up @@ -921,7 +921,7 @@ private IEnumerable<PropertyModel> 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),
Expand Down
4 changes: 2 additions & 2 deletions XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<PackageLicenseUrl>https://github.com/mganss/XmlSchemaClassGenerator/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/mganss/XmlSchemaClassGenerator</RepositoryUrl>
<RootNamespace>XmlSchemaClassGenerator</RootNamespace>
<LangVersion>latest</LangVersion>
<RootNamespace>XmlSchemaClassGenerator</RootNamespace>
<LangVersion>latest</LangVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
Expand Down

0 comments on commit b1c2cc6

Please sign in to comment.