mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Simplified while loop in FromBase58 to match ToBase58
This commit is contained in:
parent
f4de4de8c1
commit
a3c5b1e107
1 changed files with 1 additions and 2 deletions
|
@ -103,9 +103,8 @@ class FromBase58 extends Operation {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
while (zeroPrefix > 0) {
|
while (zeroPrefix--) {
|
||||||
result.push(0);
|
result.push(0);
|
||||||
zeroPrefix--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result.reverse();
|
return result.reverse();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue