mirror of
https://github.com/gchq/CyberChef
synced 2024-11-15 17:07:57 +00: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);
|
||||
zeroPrefix--;
|
||||
}
|
||||
|
||||
return result.reverse();
|
||||
|
|
Loading…
Reference in a new issue