Skip to content

Commit 10377ad

Browse files
committed
chore: fix lint errors
--- 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: passed - 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: passed - task: lint_license_headers status: passed ---
1 parent da444a1 commit 10377ad

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

lib/node_modules/@stdlib/ndarray/fill-slice/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ var bool = ( y === x );
6363
// returns true
6464

6565
var arr = ndarray2array( x );
66-
6766
// returns [ [ 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 5.0, 5.0 ], [ 0.0, 0.0, 5.0, 5.0 ] ]
6867
```
6968

@@ -152,7 +151,6 @@ var y = fillSlice( x, 5.0, s, {
152151
// returns <ndarray>
153152

154153
var arr = ndarray2array( x );
155-
156154
// returns [ [ 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0, 0.0 ] ]
157155
```
158156

lib/node_modules/@stdlib/ndarray/fill-slice/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2023 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -75,7 +75,7 @@ import fillSlice = require( './index' );
7575
fillSlice( null, 10.0, s ); // $ExpectError
7676
fillSlice( [], 10.0, s ); // $ExpectError
7777
fillSlice( {}, 10.0, s ); // $ExpectError
78-
fillSlice( ( x: number ): number => y, 10.0, s ); // $ExpectError
78+
fillSlice( ( x: number ): number => x, 10.0, s ); // $ExpectError
7979

8080
fillSlice( '10', 10.0, s, {} ); // $ExpectError
8181
fillSlice( 10, 10.0, s, {} ); // $ExpectError

lib/node_modules/@stdlib/ndarray/fill-slice/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ function fillSlice( x, value, s ) {
150150
throw new TypeError( format( 'invalid argument. Third argument cannot be safely cast to the input array data type. Data type: %s. Value: `%s`.', dt, value ) );
151151
}
152152
// Resolve the slice view:
153-
view = slice( x, S, true, true );
153+
view = slice( x, S, opts.strict, true );
154154

155155
// Broadcast the fill value to an ndarray of same shape and data type as the input ndarray:
156156
v = broadcastScalar( value, dt, getShape( view, true ), getOrder( x ) );
157157

158-
return base( v, x, S );
158+
return base( v, x, S, opts );
159159
}
160160

161161

0 commit comments

Comments
 (0)