Skip to content

Commit ba751ca

Browse files
committed
Lint
1 parent aecd1b2 commit ba751ca

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/cloudflare/src/workflows.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ const UUID_REGEX = /^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f
2626

2727
async function hashStringToUuid(input: string): Promise<string> {
2828
const buf = await crypto.subtle.digest('SHA-1', new TextEncoder().encode(input));
29-
return Array.from(new Uint8Array(buf))
30-
// We only need the first 16 bytes for the 32 characters
31-
.slice(0, 16)
32-
.map(b => b.toString(16).padStart(2, '0'))
33-
.join('');
29+
return (
30+
Array.from(new Uint8Array(buf))
31+
// We only need the first 16 bytes for the 32 characters
32+
.slice(0, 16)
33+
.map(b => b.toString(16).padStart(2, '0'))
34+
.join('')
35+
);
3436
}
3537

3638
async function propagationContextFromInstanceId(instanceId: string): Promise<PropagationContext> {

0 commit comments

Comments
 (0)