Skip to content

Commit

Permalink
- Removed additional null coalescing operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-James McDougall committed Jan 2, 2022
1 parent 40ef30c commit b946bf9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/MLBClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@ public async Task<IEnumerable<DepthChart>> GetDepthChartAsync(int teamId)
{
TeamId = depthChartJson?.teamId,
RosterType = depthChartJson?.rosterType,
PlayerId = person?.person?.id,
PlayerFullName = person?.person?.fullName,
JerseyNumber = person?.jerseyNumber,
PositionCode = person?.position?.code,
PositionName = person?.position?.name,
PositionType = person?.position?.type,
PositionAbbrevition = person?.position?.abbreviation,
StatusCode = person?.status?.code,
StatusDescription = person?.status?.description
PlayerId = person.person?.id,
PlayerFullName = person.person?.fullName,
JerseyNumber = person.jerseyNumber,
PositionCode = person.position?.code,
PositionName = person.position?.name,
PositionType = person.position?.type,
PositionAbbrevition = person.position?.abbreviation,
StatusCode = person.status?.code,
StatusDescription = person.status?.description
});
}

Expand Down

0 comments on commit b946bf9

Please sign in to comment.