Skip to content

Commit b946af9

Browse files
committed
docs: update examples
--- 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: na - 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: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 103a35d commit b946af9

8 files changed

Lines changed: 0 additions & 32 deletions

File tree

lib/node_modules/@stdlib/napi/create-complex-like/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
119119
napi_value value;
120120
napi_status status = stdlib_napi_create_complex_like( env, 3.0, 5.0, &value );
121121
assert( status == napi_ok );
122-
if ( err != NULL ) {
123-
assert( napi_throw( env, err ) == napi_ok );
124-
return NULL;
125-
}
126122

127123
// ...
128124
}

lib/node_modules/@stdlib/napi/create-complex-like/src/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
* napi_value value;
4242
* napi_status status = stdlib_napi_create_complex_like( env, 3.0, 5.0, &value );
4343
* assert( status == napi_ok );
44-
* if ( err != NULL ) {
45-
* assert( napi_throw( env, err ) == napi_ok );
46-
* return NULL;
47-
* }
4844
*
4945
* // ...
5046
* }

lib/node_modules/@stdlib/napi/create-double/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
119119
napi_value value;
120120
napi_status status = stdlib_napi_create_double( env, 1.0, &value );
121121
assert( status == napi_ok );
122-
if ( err != NULL ) {
123-
assert( napi_throw( env, err ) == napi_ok );
124-
return NULL;
125-
}
126122

127123
// ...
128124
}

lib/node_modules/@stdlib/napi/create-double/src/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
* napi_value value;
4040
* napi_status status = stdlib_napi_create_double( env, 1.0, &value );
4141
* assert( status == napi_ok );
42-
* if ( err != NULL ) {
43-
* assert( napi_throw( env, err ) == napi_ok );
44-
* return NULL;
45-
* }
4642
*
4743
* // ...
4844
* }

lib/node_modules/@stdlib/napi/create-int32/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
119119
napi_value value;
120120
napi_status status = stdlib_napi_create_int32( env, 1, &value );
121121
assert( status == napi_ok );
122-
if ( err != NULL ) {
123-
assert( napi_throw( env, err ) == napi_ok );
124-
return NULL;
125-
}
126122

127123
// ...
128124
}

lib/node_modules/@stdlib/napi/create-int32/src/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
* napi_value value;
4141
* napi_status status = stdlib_napi_create_int32( env, 1, &value );
4242
* assert( status == napi_ok );
43-
* if ( err != NULL ) {
44-
* assert( napi_throw( env, err ) == napi_ok );
45-
* return NULL;
46-
* }
4743
*
4844
* // ...
4945
* }

lib/node_modules/@stdlib/napi/create-uint32/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
119119
napi_value value;
120120
napi_status status = stdlib_napi_create_uint32( env, 1, &value );
121121
assert( status == napi_ok );
122-
if ( err != NULL ) {
123-
assert( napi_throw( env, err ) == napi_ok );
124-
return NULL;
125-
}
126122

127123
// ...
128124
}

lib/node_modules/@stdlib/napi/create-uint32/src/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
* napi_value value;
4141
* napi_status status = stdlib_napi_create_uint32( env, 1, &value );
4242
* assert( status == napi_ok );
43-
* if ( err != NULL ) {
44-
* assert( napi_throw( env, err ) == napi_ok );
45-
* return NULL;
46-
* }
4743
*
4844
* // ...
4945
* }

0 commit comments

Comments
 (0)