From d0ab6b41280b1a604f6a26d9920550c13b361c26 Mon Sep 17 00:00:00 2001 From: Karolis Mazukna Date: Fri, 13 Jan 2023 15:28:19 +0200 Subject: [PATCH] chore: fix prettier --- src/index.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index d342967..7a9285c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -552,7 +552,12 @@ export default class Redlock extends EventEmitter { let result: number; try { // Attempt to evaluate the script by its hash. - const shaResult = await client.evalsha(script.hash, keys.length, ...keys, ...args); + const shaResult = await client.evalsha( + script.hash, + keys.length, + ...keys, + ...args + ); if (typeof shaResult !== "number") { throw new Error( `Unexpected result of type ${typeof shaResult} returned from redis.` @@ -569,7 +574,12 @@ export default class Redlock extends EventEmitter { ) { throw error; } - const rawResult = await client.eval(script.value, keys.length, ...keys, ...args); + const rawResult = await client.eval( + script.value, + keys.length, + ...keys, + ...args + ); if (typeof rawResult !== "number") { throw new Error(