Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsandhu committed Jun 12, 2024
1 parent a8b1050 commit fe9f4fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/operations/ParseCSR.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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, "$&:")));
Expand All @@ -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));
}

/**
Expand All @@ -217,7 +216,7 @@ function ensureHexIsPositiveInTwosComplement(hex) {
hex = "00" + hex;
}

return hex
return hex;
}

/**
Expand Down

0 comments on commit fe9f4fa

Please sign in to comment.