Skip to content

Commit

Permalink
fix based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ElizabethOkerio committed Oct 18, 2022
1 parent 7cf9481 commit 9229e22
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,13 +457,9 @@ public virtual void WriteDeltaDeletedEntry(object graph, ODataWriter writer, ODa
if (selectExpandNode != null)
{
ODataDeletedResource deletedResource = GetDeletedResource(graph, resourceContext, serializer, selectExpandNode, writeContext.IsUntyped);

if (deletedResource != null)
{
writer.WriteStart(deletedResource);
serializer.WriteDeltaComplexProperties(selectExpandNode, resourceContext, writer);
writer.WriteEnd();
}
writer.WriteStart(deletedResource);
serializer.WriteDeltaComplexProperties(selectExpandNode, resourceContext, writer);
writer.WriteEnd();
}
}
}
Expand Down Expand Up @@ -491,13 +487,9 @@ public virtual async Task WriteDeltaDeletedEntryAsync(object graph, ODataWriter
if (selectExpandNode != null)
{
ODataDeletedResource deletedResource = GetDeletedResource(graph, resourceContext, serializer, selectExpandNode, writeContext.IsUntyped);

if (deletedResource != null)
{
await writer.WriteStartAsync(deletedResource);
await serializer.WriteDeltaComplexPropertiesAsync(selectExpandNode, resourceContext, writer);
await writer.WriteEndAsync();
}
await writer.WriteStartAsync(deletedResource);
await serializer.WriteDeltaComplexPropertiesAsync(selectExpandNode, resourceContext, writer);
await writer.WriteEndAsync();
}
}

Expand Down

0 comments on commit 9229e22

Please sign in to comment.