summaryrefslogtreecommitdiff
path: root/uuid/v4.ts
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-09-12 11:31:23 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-09-11 23:31:23 -0400
commit878a9a29e77bcaedd4242618ccf57d1be7dfd7d8 (patch)
tree53fd448fa9cf0295c2498f4f7970f1a720435dcc /uuid/v4.ts
parent08087e921ede553d1eaeb682d264c3d4c217a3cd (diff)
bump prettier to 1.18.2 (denoland/deno_std#592)
Original: https://github.com/denoland/deno_std/commit/06958a4ada960665a48ac34f919423e0d8d16951
Diffstat (limited to 'uuid/v4.ts')
-rw-r--r--uuid/v4.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/uuid/v4.ts b/uuid/v4.ts
index 84ba28b0f..511933439 100644
--- a/uuid/v4.ts
+++ b/uuid/v4.ts
@@ -15,12 +15,10 @@ export default function generate(): string {
rnds[6] = (rnds[6] & 0x0f) | 0x40; // Version 4
rnds[8] = (rnds[8] & 0x3f) | 0x80; // Variant 10
- const bits: string[] = [...rnds].map(
- (bit): string => {
- const s: string = bit.toString(16);
- return bit < 0x10 ? "0" + s : s;
- }
- );
+ const bits: string[] = [...rnds].map((bit): string => {
+ const s: string = bit.toString(16);
+ return bit < 0x10 ? "0" + s : s;
+ });
return [
...bits.slice(0, 4),
"-",