From fe9f4fa7a93680b0a7db6db71a564be8b399addc Mon Sep 17 00:00:00 2001 From: Robin Sandhu Date: Wed, 12 Jun 2024 19:00:14 +0100 Subject: [PATCH] Fix linting errors --- src/core/operations/ParseCSR.mjs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/operations/ParseCSR.mjs b/src/core/operations/ParseCSR.mjs index 3950d4d87..d3b3c364a 100644 --- a/src/core/operations/ParseCSR.mjs +++ b/src/core/operations/ParseCSR.mjs @@ -184,7 +184,7 @@ function formatExtensionCriticalTag(extension) { */ function formatHexOntoMultiLine(hex) { if (hex.length % 2 !== 0) { - hex = "0" + hex + hex = "0" + hex; } return formatMultiLine(chop(hex.replace(/(..)/g, "$&:"))); @@ -197,9 +197,8 @@ function formatHexOntoMultiLine(hex) { */ function absBigIntToHex(int) { int = int < 0n ? -int : int; - let hInt = int.toString(16); - return ensureHexIsPositiveInTwosComplement(hInt); + return ensureHexIsPositiveInTwosComplement(int.toString(16)); } /** @@ -217,7 +216,7 @@ function ensureHexIsPositiveInTwosComplement(hex) { hex = "00" + hex; } - return hex + return hex; } /**