From 204e1fe06589c646c0881b3426276ff0e52c9b59 Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 6 Oct 2023 23:02:24 +0200 Subject: [PATCH] lint --- src/utils/SignerUtils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/SignerUtils.ts b/src/utils/SignerUtils.ts index 433de54f8..709646737 100644 --- a/src/utils/SignerUtils.ts +++ b/src/utils/SignerUtils.ts @@ -106,9 +106,7 @@ async function getSecretSigner(): Promise { try { secret = await readFile(SECRET, { encoding: "utf8" }); secret = secret.trim().replace("\n", ""); - return /^0x[0-9a-f]{64}$/.test(secret) - ? new Wallet(secret) - : Wallet.fromMnemonic(secret); + return /^0x[0-9a-f]{64}$/.test(secret) ? new Wallet(secret) : Wallet.fromMnemonic(secret); } catch (err) { const msg = typeguards.isError(err) ? err.message : "unknown error"; throw new Error(`Unable to load secret (${SECRET}: ${msg})`);