Skip to content

Commit 80a434f

Browse files
authored
refactor: remove unneeded isnan checks
PR-URL: #11693 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent c1d72a0 commit 80a434f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/dists/hypergeometric/mean/lib

lib/node_modules/@stdlib/stats/base/dists/hypergeometric/mean/lib/main.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// MODULES //
2222

2323
var isNonNegativeInteger = require( '@stdlib/math/base/assert/is-nonnegative-integer' );
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2524
var PINF = require( '@stdlib/constants/float64/pinf' );
2625

2726

@@ -72,13 +71,6 @@ var PINF = require( '@stdlib/constants/float64/pinf' );
7271
* // returns NaN
7372
*/
7473
function mean( N, K, n ) {
75-
if (
76-
isnan( N ) ||
77-
isnan( K ) ||
78-
isnan( n )
79-
) {
80-
return NaN;
81-
}
8274
if (
8375
!isNonNegativeInteger( N ) ||
8476
!isNonNegativeInteger( K ) ||

0 commit comments

Comments
 (0)