Skip to content

Commit 6d01dde

Browse files
committed
Fix sonarcloud issue
1 parent 3db1ee0 commit 6d01dde

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

XmlSchemaClassGenerator.Console/Program.cs

+9-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ A file name may be given by appending a pipe sign (|) followed by a file name (l
235235
DateTimeWithTimeZone = dateTimeWithTimeZone,
236236
EntityFramework = entityFramework,
237237
GenerateInterfaces = interfaces,
238-
NamingScheme = namingScheme != null ? namingScheme.Value : (pascal ? NamingScheme.PascalCase : NamingScheme.Direct),
239238
AssemblyVisible = assembly,
240239
CollectionType = collectionType,
241240
CollectionImplementationType = collectionImplementationType,
@@ -266,6 +265,15 @@ A file name may be given by appending a pipe sign (|) followed by a file name (l
266265
AllowDtdParse = allowDtdParse,
267266
};
268267

268+
if (namingScheme != null)
269+
{
270+
generator.NamingScheme = namingScheme.Value;
271+
}
272+
else
273+
{
274+
generator.NamingScheme = pascal ? NamingScheme.PascalCase : NamingScheme.Direct;
275+
}
276+
269277
if (nameSubstituteMap.Any())
270278
{
271279
generator.NamingProvider = new SubstituteNamingProvider(nameSubstituteMap);

0 commit comments

Comments
 (0)