Skip to content

Commit 45f1997

Browse files
committed
added conditional operator in C
1 parent 73b794f commit 45f1997

File tree

2 files changed

+1
-5
lines changed
  • lib/node_modules/@stdlib
    • array/base/mskbinary5d/lib
    • ndarray/base/unary/lib

2 files changed

+1
-5
lines changed

lib/node_modules/@stdlib/array/base/mskbinary5d/lib/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ function mskbinary5d( arrays, shape, fcn ) {
115115
z0 = z1[ i1 ];
116116
m0 = m1[ i1 ];
117117
for ( i0 = 0; i0 < S0; i0++ ) {
118-
if ( m0[ i0 ] === 0 ) {
119-
z0[ i0 ] = fcn( x0[ i0 ], y0[ i0 ] );
120-
}
118+
z0[ i0 ] = ( m0[ i0 ] === 0 ) ? fcn( x0[ i0 ], y0[ i0 ] ) : 0 ;
121119
}
122120
}
123121
}

lib/node_modules/@stdlib/ndarray/base/unary/lib/5d.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable max-depth */
20-
2119
'use strict';
2220

2321
// MAIN //

0 commit comments

Comments
 (0)