remove useless local initialization before assignment
This commit is contained in:
parent
02dd98a045
commit
7c12a85bf8
|
@ -209,8 +209,7 @@ public abstract class AbstractIntegerDistribution implements IntegerDistribution
|
|||
*/
|
||||
private double checkedCumulativeProbability(int argument)
|
||||
throws MathInternalError {
|
||||
double result = Double.NaN;
|
||||
result = cumulativeProbability(argument);
|
||||
double result = cumulativeProbability(argument);
|
||||
if (Double.isNaN(result)) {
|
||||
throw new MathInternalError(LocalizedFormats
|
||||
.DISCRETE_CUMULATIVE_PROBABILITY_RETURNED_NAN, argument);
|
||||
|
|
Loading…
Reference in New Issue