Skip to content

Commit b81bbfa

Browse files
committed
Remove unnecessary null checks
1 parent 252918d commit b81bbfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

App/Services/Utility/MarketChartHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ public static List<MarketChartPoint> MapMarketChartToMarketChartPoints(MarketCha
1212
throw new MarketChartException($"{nameof(marketChart.Prices)} is null");
1313
}
1414

15-
if (marketChart?.MarketCaps is null)
15+
if (marketChart.MarketCaps is null)
1616
{
1717
throw new MarketChartException($"{nameof(marketChart.MarketCaps)} is null");
1818
}
1919

20-
if (marketChart?.TotalVolumes is null)
20+
if (marketChart.TotalVolumes is null)
2121
{
2222
throw new MarketChartException($"{nameof(marketChart.TotalVolumes)} is null");
2323
}

0 commit comments

Comments
 (0)