Skip to content

Commit 3cbfc35

Browse files
committed
Remove unnecessary nested conditions
1 parent 975c96e commit 3cbfc35

File tree

1 file changed

+0
-6
lines changed
  • lib/node_modules/@stdlib/stats/incr/mstdev/lib

1 file changed

+0
-6
lines changed

lib/node_modules/@stdlib/stats/incr/mstdev/lib/main.js

-6
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ function incrmstdev( W, mean ) {
130130
// Case: initial window...
131131
else if ( N < W ) {
132132
buf[ i ] = x; // update buffer
133-
if ( isnan( M2 ) ) {
134-
return NaN;
135-
}
136133
N += 1;
137134
delta = x - mu;
138135
mu += delta / N;
@@ -210,9 +207,6 @@ function incrmstdev( W, mean ) {
210207
// Case: initial window...
211208
else if ( N < W ) {
212209
buf[ i ] = x; // update buffer
213-
if ( isnan( M2 ) ) {
214-
return NaN;
215-
}
216210
N += 1;
217211
delta = x - mu;
218212
M2 += delta * delta;

0 commit comments

Comments
 (0)