Skip to content

Commit

Permalink
Revert 'fix attempt'
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinesunday authored and baywet committed May 4, 2022
1 parent 0c7eb91 commit 7cb1058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ internal static string ToFirstCharacterLowerCase(this string input)
internal static string NavigationPropertyPath(this ODataPath path, string navigationPropertyName = null)
{
string value = string.Join("/",
path.Segments.Where(s => s is ODataNavigationPropertySegment).Select(e => e.Identifier));
path.Segments.OfType<ODataNavigationPropertySegment>().Select(e => e.Identifier));
return navigationPropertyName == null ? value : $"{value}/{navigationPropertyName}";
}
}
Expand Down

0 comments on commit 7cb1058

Please sign in to comment.