diff --git a/sdk/src/Core/Amazon.Runtime/Internal/Transform/JsonUnmarshallerContext.cs b/sdk/src/Core/Amazon.Runtime/Internal/Transform/JsonUnmarshallerContext.cs index 85ab37425c76..306c1752badf 100644 --- a/sdk/src/Core/Amazon.Runtime/Internal/Transform/JsonUnmarshallerContext.cs +++ b/sdk/src/Core/Amazon.Runtime/Internal/Transform/JsonUnmarshallerContext.cs @@ -270,12 +270,10 @@ public string ReadText(ref StreamingUtf8JsonReader reader) text = reader.Reader.GetBoolean().ToString(); break; case JsonTokenType.PropertyName: - text = reader.Reader.GetString(); - break; case JsonTokenType.String: text = reader.Reader.GetString(); break; - // For numbers we grab the raw value b/ c we don't want to lose precision. + // For numbers we grab the raw value b/ c we don't want to lose precision. case JsonTokenType.Number: #if NETSTANDARD2_0 || NETFRAMEWORK // overload which accepts a ReadOnlySpan is only available in netstandard2.1 and netcore2.1+