From d86726e4a93aebb5cf38c91b91c212c32cba5519 Mon Sep 17 00:00:00 2001 From: SIDDARTHA REDDY <75976672+SIDDARTHAREDDY8@users.noreply.github.com> Date: Fri, 18 Sep 2026 03:20:47 +0000 Subject: [PATCH] chore: fix JavaScript lint errors (issue #12359) --- .../base/tools/evalpoly-compile/examples/index.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js index 74c2c078cd22..00392e3445b0 100644 --- a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js +++ b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js @@ -18,16 +18,8 @@ 'use strict'; -var resolve = require( 'path' ).resolve; var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); -var tryRequire = require( '@stdlib/utils/try-require' ); - -var compile = tryRequire( resolve( __dirname, '..', 'lib' ) ); -if ( compile instanceof Error ) { - console.log( 'Unable to run example. Unsupported environment.' ); -} else { - main(); -} +var compile = require( './../lib' ); function main() { // Create an array of random coefficients: @@ -37,3 +29,5 @@ function main() { var str = compile( coef ); console.log( str ); } + +main();