Skip to content

Commit c78d989

Browse files
committed
squash: make linter happy
1 parent c2f669d commit c78d989

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/buffer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ Buffer.from = function from(value, encodingOrOffset, length) {
343343
* @returns {Buffer}
344344
*/
345345
Buffer.fromHex = function fromHex(str) {
346+
// TODO(LiviaMedeiros): replace with primordial once `--js-base-64` is not optional
347+
// eslint-disable-next-line node-core/prefer-primordials
346348
const buf = Uint8Array.fromHex(str);
347349
return fromArrayBuffer(
348350
TypedArrayPrototypeGetBuffer(buf),
@@ -357,6 +359,8 @@ Buffer.fromHex = function fromHex(str) {
357359
* @returns {Buffer}
358360
*/
359361
Buffer.fromBase64 = function fromBase64(str, options) {
362+
// TODO(LiviaMedeiros): replace with primordial once `--js-base-64` is not optional
363+
// eslint-disable-next-line node-core/prefer-primordials
360364
const buf = Uint8Array.fromBase64(str, options);
361365
return fromArrayBuffer(
362366
TypedArrayPrototypeGetBuffer(buf),

0 commit comments

Comments
 (0)