Skip to content

Commit ea6e99b

Browse files
committed
chore: use the implemented operator
Signed-off-by: Vincent Biret <[email protected]>
1 parent 31bfaac commit ea6e99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Reader/OpenApiReaderSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public Dictionary<string, IOpenApiReader> Readers
9494
init
9595
{
9696
Utils.CheckArgumentNull(value);
97-
_readers = value.Comparer == StringComparer.OrdinalIgnoreCase ?
97+
_readers = value.Comparer is StringComparer stringComparer && stringComparer == StringComparer.OrdinalIgnoreCase ?
9898
value :
9999
new Dictionary<string, IOpenApiReader>(value, StringComparer.OrdinalIgnoreCase);
100100
}

0 commit comments

Comments
 (0)