Skip to content

Commit 5bae95f

Browse files
authored
Fix another CodeQL issue (#5570)
1 parent 1819c0d commit 5bae95f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.CodeQL.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
path_classifiers:
66
refs:
7-
# The test/ directories don't contain shipping implementations of code, so they should
7+
# The tests/ directories don't contain shipping implementations of code, so they should
88
# be excluded from analysis.
99
- src/**/tests/*

src/dotnet-svcutil/lib/src/Shared/Options/OptionsSerializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s
131131

132132
public static void WriteJson(JsonWriter writer, TAppOptions options, JsonSerializer serializer)
133133
{
134-
serializer.TypeNameHandling = TypeNameHandling.Auto;
134+
serializer.TypeNameHandling = TypeNameHandling.None;
135135

136136
((IOptionsSerializationHandler)options).RaiseBeforeSerializeEvent();
137137

0 commit comments

Comments
 (0)