Skip to content

Commit 8af1610

Browse files
chore(buffer): remove unused eslint-disable directives in polyfill.js
PR-URL: #5762 Closes: #5697 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 1192e1f commit 8af1610

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/buffer/from-string/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/buffer/from-string/lib/polyfill.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ function fromString( str, encoding ) {
4949
if ( !isString( encoding ) ) {
5050
throw new TypeError( format( 'invalid argument. Second argument must be a string. Value: `%s`.', encoding ) );
5151
}
52-
return new Buffer( str, encoding ); // eslint-disable-line no-buffer-constructor
52+
return new Buffer( str, encoding );
5353
}
54-
return new Buffer( str, 'utf8' ); // eslint-disable-line no-buffer-constructor
54+
return new Buffer( str, 'utf8' );
5555
}
5656

5757

0 commit comments

Comments
 (0)