We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25cc43d commit 08b70b9Copy full SHA for 08b70b9
Algorithms/Financial/PresentValue.cs
@@ -16,7 +16,7 @@ public static double Calculate(double discountRate, List<double> cashFlows)
16
throw new ArgumentException("Discount rate cannot be negative");
17
}
18
19
- if (cashFlows == null || cashFlows.Count == 0)
+ if (cashFlows.Count == 0)
20
{
21
throw new ArgumentException("Cash flows list cannot be empty");
22
0 commit comments