Skip to content

Commit 777e94d

Browse files
authored
Update src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs
1 parent a0d0774 commit 777e94d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.OData.Reader/Edm/ODataPathProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private void AppendPath(ODataPath path)
149149

150150
if (kind == ODataPathKind.DollarCount)
151151
{
152-
if (_allOperationPaths.FirstOrDefault(p => DollarCountAndOperationPathsSimilar(p, path)) is ODataPath)
152+
if (_allOperationPaths.FirstOrDefault(p => DollarCountAndOperationPathsSimilar(p, path)) is not null)
153153
{
154154
// Don't add a path for $count if a similar count() function path already exists.
155155
return;

0 commit comments

Comments
 (0)