Skip to content

Commit

Permalink
crypto: reformat randomuuid options destructuring
Browse files Browse the repository at this point in the history
Co-authored-by: James M Snell <[email protected]>
  • Loading branch information
rangoo94 and jasnell committed Feb 22, 2021
1 parent 653f8e7 commit 3eb8e89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/internal/crypto/random.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ function getUnbufferedUUID() {
function randomUUID(options) {
if (options !== undefined)
validateObject(options, 'options');
const { disableEntropyCache = false } = options || {};
const {
disableEntropyCache = false,
} = options || {};

validateBoolean(disableEntropyCache, 'options.disableEntropyCache');

Expand Down

0 comments on commit 3eb8e89

Please sign in to comment.