Skip to content

Commit 4ba8624

Browse files
committed
refactor: apply suggestions from code review
--- 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent c04beea commit 4ba8624

File tree

1 file changed

+3
-5
lines changed
  • lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-big-int/lib

1 file changed

+3
-5
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/no-builtin-big-int/lib/main.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ var rule;
2626
// FUNCTIONS //
2727

2828
/**
29-
* Checks whether using the built-in BigInt or `@stdlib/bigint/ctor`.
29+
* Checks whether using imported constructor from `@stdlib/bigint/ctor`.
3030
*
3131
* @private
3232
* @param {Object} scope - scope
33-
* @returns {boolean} boolean indicating if using the built-in BigInt or `@stdlib/bigint/ctor`
33+
* @returns {boolean} boolean indicating if using imported constructor from `@stdlib/bigint/ctor`
3434
*/
3535
function isImportedBigInt( scope ) {
3636
var isNotBuiltIn;
@@ -60,9 +60,7 @@ function isImportedBigInt( scope ) {
6060
* @returns {Object} validators
6161
*/
6262
function main( context ) {
63-
var scope;
64-
65-
scope = context.getScope();
63+
var scope = context.getScope();
6664

6765
/**
6866
* Reports the error message.

0 commit comments

Comments
 (0)