Skip to content

Commit 7cb1058

Browse files
irvinesundaybaywet
authored andcommitted
Revert 'fix attempt'
1 parent 0c7eb91 commit 7cb1058

File tree

1 file changed

+1
-1
lines changed
  • src/Microsoft.OpenApi.OData.Reader/Common

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ internal static string ToFirstCharacterLowerCase(this string input)
125125
internal static string NavigationPropertyPath(this ODataPath path, string navigationPropertyName = null)
126126
{
127127
string value = string.Join("/",
128-
path.Segments.Where(s => s is ODataNavigationPropertySegment).Select(e => e.Identifier));
128+
path.Segments.OfType<ODataNavigationPropertySegment>().Select(e => e.Identifier));
129129
return navigationPropertyName == null ? value : $"{value}/{navigationPropertyName}";
130130
}
131131
}

0 commit comments

Comments
 (0)