Skip to content

Commit 26a5429

Browse files
committed
squash: remove redundant Buffer.from()
1 parent 8fdb386 commit 26a5429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-webcrypto-random.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ for (const ctor of intTypedConstructors) {
4848

4949
{
5050
const buf = Buffer.alloc(10);
51-
const before = Buffer.from(buf).toString('hex');
51+
const before = buf.toString('hex');
5252
webcrypto.getRandomValues(buf);
53-
const after = Buffer.from(buf).toString('hex');
53+
const after = buf.toString('hex');
5454
assert.notStrictEqual(before, after);
5555
}
5656

0 commit comments

Comments
 (0)