Skip to content

Commit 944cc60

Browse files
committed
chore: linting error
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 115d185 commit 944cc60

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/lapack/base/dgebal/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/lapack/base/dgebal/lib/base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ var dscal = require( '@stdlib/blas/base/dscal' ).ndarray;
6868
* @param {Float64Array} scale - array containing permutation and scaling information
6969
* @param {integer} strideScale - stride of `scale`
7070
* @param {NonNegativeInteger} offsetScale - starting index for `scale`
71+
* @throws {RangeError} should not return NaN
7172
* @returns {integer} status code
7273
*
7374
* @example
@@ -228,7 +229,7 @@ function dgebal( job, N, A, strideA1, strideA2, offsetA, out, strideOut, offsetO
228229
}
229230

230231
if ( isnan( c ) || isnan( r ) || isnan( ca ) || isnan( ra ) ) {
231-
return -3;
232+
throw new RangeError( 'should not return NaN' );
232233
}
233234

234235
g = r / sclfac;

0 commit comments

Comments
 (0)