Skip to content

Commit

Permalink
squash: remove redundant Buffer.from()
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Jul 1, 2022
1 parent 8fdb386 commit 26a5429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-webcrypto-random.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ for (const ctor of intTypedConstructors) {

{
const buf = Buffer.alloc(10);
const before = Buffer.from(buf).toString('hex');
const before = buf.toString('hex');
webcrypto.getRandomValues(buf);
const after = Buffer.from(buf).toString('hex');
const after = buf.toString('hex');
assert.notStrictEqual(before, after);
}

Expand Down

0 comments on commit 26a5429

Please sign in to comment.