Skip to content

Commit

Permalink
always check etag
Browse files Browse the repository at this point in the history
  • Loading branch information
simpat-adam committed Jan 8, 2025
1 parent 7e81b9c commit d445ee0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ private static void CheckAndRemoveMetadata(JsonNode responseJson, bool removeEta
lastModifiedDate.Should().NotBeNull();
item.Remove("_lastModifiedDate");

var eTag = Etag(item);
eTag.Should().NotBeNull();
if (removeEtag)
{
var eTag = Etag(item);
eTag.Should().NotBeNull();
item.Remove("_etag");
}
}
Expand All @@ -477,10 +477,10 @@ private static void CheckAndRemoveMetadata(JsonNode responseJson, bool removeEta
lastModifiedDate.Should().NotBeNull();
(responseJson as JsonObject)?.Remove("_lastModifiedDate");

var eTag = Etag(responseJson);
eTag.Should().NotBeNull();
if (removeEtag)
{
var eTag = Etag(responseJson);
eTag.Should().NotBeNull();
(responseJson as JsonObject)?.Remove("_etag");
}
}
Expand Down

0 comments on commit d445ee0

Please sign in to comment.