1
0
mirror of synced 2024-11-23 22:41:02 +01:00

Fix linting errors

This commit is contained in:
Robin Sandhu 2024-06-12 19:00:14 +01:00
parent a8b1050d75
commit fe9f4fa7a9
No known key found for this signature in database
GPG Key ID: 065D38DCE55F960E

View File

@ -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;
}
/**