Skip to content

Commit 9063d2a

Browse files
committed
Fix review comments
1 parent 17079ee commit 9063d2a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Microsoft.OpenApi/Services/OpenApiAnyComparer.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,7 @@ public override void Compare(
5656
target.Write(targetWriter, OpenApiSpecVersion.OpenApi3_0);
5757
var targetValue = targetStringWriter.GetStringBuilder().ToString();
5858

59-
if (string.IsNullOrWhiteSpace(sourceValue) && string.IsNullOrWhiteSpace(targetValue))
60-
{
61-
return;
62-
}
63-
64-
if (string.Compare(sourceValue, targetValue, StringComparison.CurrentCultureIgnoreCase) != 0)
59+
if (string.Compare(sourceValue, targetValue, StringComparison.InvariantCulture) != 0)
6560
{
6661
comparisonContext.AddOpenApiDifference(new OpenApiDifference
6762
{

0 commit comments

Comments
 (0)