Skip to content

Commit

Permalink
Fix sonarcloud issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mganss committed Apr 12, 2024
1 parent c33a385 commit 7294c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,8 +1102,8 @@ private IEnumerable<CodeAttributeDeclaration> GetAttributes(bool isArray, TypeMo
{
var qualifiedName = xmlSchemaType.GetQualifiedName();

if ((qualifiedName.Namespace == XmlSchema.Namespace && qualifiedName.Name != "anySimpleType") &&
(xmlSchemaType.Datatype.ValueType == typeof(DateTime) && Configuration.DateTimeWithTimeZone) == false)
if (qualifiedName.Namespace == XmlSchema.Namespace && qualifiedName.Name != "anySimpleType" &&
!(xmlSchemaType.Datatype.ValueType == typeof(DateTime) && Configuration.DateTimeWithTimeZone))
{
args.Add(new("DataType", new CodePrimitiveExpression(qualifiedName.Name)));
break;
Expand Down

0 comments on commit 7294c72

Please sign in to comment.