Skip to content

Commit c2cf04d

Browse files
chore: fix JavaScript lint errors
PR-URL: #7747 Closes: #7744 Ref: #5377 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent fcafc72 commit c2cf04d

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/plot/ctor/lib/props/x-max

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/plot/ctor/lib/props/x-max/get.js

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

2323
var isNull = require( '@stdlib/assert/is-null' );
24-
var max = require( './../../utils/max.js' ); // TODO: replace with mod when written
24+
var max = require( './../../utils/max.js' ); // TODO: replace with stdlib package import when added
2525

2626

2727
// FUNCTIONS //
@@ -39,9 +39,9 @@ function getMax( arr ) {
3939
if ( arr.length === 0 ) {
4040
return null;
4141
}
42-
tmp = new Array( arr.length );
42+
tmp = [];
4343
for ( i = 0; i < arr.length; i++ ) {
44-
tmp[ i ] = max( arr[ i ] );
44+
tmp.push( max( arr[ i ] ) );
4545
}
4646
return max( tmp );
4747
}

0 commit comments

Comments
 (0)