Skip to content

Commit

Permalink
fix(buffer): remove unused eslint-disable directives in polyfill.js
Browse files Browse the repository at this point in the history
---
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
---
  • Loading branch information
abdelrahman04 committed Mar 3, 2025
1 parent befe02c commit 8077e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/buffer/from-string/lib/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ function fromString( str, encoding ) {
if ( !isString( encoding ) ) {
throw new TypeError( format( 'invalid argument. Second argument must be a string. Value: `%s`.', encoding ) );
}
return new Buffer( str, encoding ); // eslint-disable-line no-buffer-constructor
return new Buffer( str, encoding );
}
return new Buffer( str, 'utf8' ); // eslint-disable-line no-buffer-constructor
return new Buffer( str, 'utf8' );
}


Expand Down

0 comments on commit 8077e33

Please sign in to comment.