Skip to content

Commit

Permalink
Update the comparison between newPermissionFileContents and requestPe…
Browse files Browse the repository at this point in the history
…rmissions to ignore case differences.
  • Loading branch information
millicentachieng authored Aug 2, 2024
1 parent adcc53b commit 44952ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApiDoctor.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3051,7 +3051,7 @@ private static string GetPermissionsMarkdownTableForHttpRequestBlock(Permissions
var requestPermissions = generator.GenerateTable();
newPermissionFileContents ??= requestPermissions;

if (newPermissionFileContents != requestPermissions)
if (!newPermissionFileContents.Equals(requestPermissions, StringComparison.OrdinalIgnoreCase))
{
FancyConsole.WriteLine(ConsoleColor.Yellow, $"Encountered request URL(s) for permissions table ({permissionsTablePosition}) in {docFileName} with a different set of permissions");
}
Expand Down

0 comments on commit 44952ff

Please sign in to comment.