Skip to content

Commit

Permalink
Address the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhg committed Sep 23, 2024
1 parent a98f2b7 commit 4f16d6e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ internal void ReadResourceTypeName(IODataJsonReaderResourceState resourceState)
this.AssertJsonCondition(JsonNodeType.Property, JsonNodeType.EndObject);

object value;
if (this.JsonReader.TryGetValueFromBuffered(ODataJsonConstants.PrefixedODataTypePropertyName, true, out value) ||
this.JsonReader.TryGetValueFromBuffered(ODataJsonConstants.SimplifiedODataTypePropertyName, true, out value))
if (this.JsonReader.TryGetValueFromBuffered(ODataJsonConstants.PrefixedODataTypePropertyName, removeIfExist: true, out value) ||
this.JsonReader.TryGetValueFromBuffered(ODataJsonConstants.SimplifiedODataTypePropertyName, removeIfExist: true, out value))
{
resourceState.Resource.TypeName = ReaderUtils.AddEdmPrefixOfTypeName(ReaderUtils.RemovePrefixOfTypeName(value as string));
return;
Expand All @@ -122,8 +122,6 @@ internal void ReadResourceTypeName(IODataJsonReaderResourceState resourceState)

// Read the annotation value.
resourceState.Resource.TypeName = this.ReadODataTypeAnnotationValue();

// resourceState.TypeAnnotationFound = true;
}
}

Expand Down

0 comments on commit 4f16d6e

Please sign in to comment.