Skip to content

Commit 878c821

Browse files
committed
chore: linting
Signed-off-by: Vincent Biret <[email protected]>
1 parent cd2b472 commit 878c821

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.OpenApi.OData.Reader/Operation/DollarCountGetOperationHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ protected override void Initialize(ODataContext context, ODataPath path)
4949
base.Initialize(context, path);
5050

5151
// Get the first segment
52-
firstSegment = path.Segments.First();
52+
firstSegment = path.Segments[0];
5353

5454
// get the last second segment
5555
pathCount = path.Segments.Count;
5656
if(pathCount >= SecondLastSegmentIndex)
57-
SecondLastSegment = path.Segments.ElementAt(pathCount - SecondLastSegmentIndex);
57+
SecondLastSegment = path.Segments[pathCount - SecondLastSegmentIndex];
5858

5959
if (SecondLastSegment is ODataNavigationSourceSegment sourceSegment)
6060
{
@@ -80,7 +80,7 @@ protected override void SetTags(OpenApiOperation operation)
8080
}
8181
else if (SecondLastSegment is ODataTypeCastSegment)
8282
{
83-
ODataSegment lastThirdSegment = Path.Segments.ElementAt(pathCount - 3);
83+
ODataSegment lastThirdSegment = Path.Segments[pathCount - 3];
8484
if (lastThirdSegment is ODataNavigationSourceSegment sourceSegment2)
8585
{
8686
tagName = TagNameFromNavigationSourceSegment(sourceSegment2);

0 commit comments

Comments
 (0)