Skip to content

Commit e0b7f74

Browse files
committed
refactor: remove unreachable code path
--- 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: passed - 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 f5c3bbb commit e0b7f74

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

lib/node_modules/@stdlib/stats/base/nanmax-by/lib/accessors.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ function nanmaxBy( N, x, strideX, offsetX, clbk, thisArg ) {
6666
// Cache a reference to the element accessor:
6767
get = x.accessors[0];
6868

69-
if ( N <= 0 ) {
70-
return NaN;
71-
}
7269
if ( N === 1 || strideX === 0 ) {
7370
v = clbk.call( thisArg, get( xbuf, offsetX ), 0, offsetX, xbuf );
7471
if ( v === void 0 || isnan( v ) ) {

0 commit comments

Comments
 (0)