mirror of
https://github.com/gchq/CyberChef
synced 2026-01-06 10:33:18 +00:00
Simplified while loop in FromBase58 to match ToBase58
This commit is contained in:
@@ -103,9 +103,8 @@ class FromBase58 extends Operation {
|
||||
}
|
||||
});
|
||||
|
||||
while (zeroPrefix > 0) {
|
||||
while (zeroPrefix--) {
|
||||
result.push(0);
|
||||
zeroPrefix--;
|
||||
}
|
||||
|
||||
return result.reverse();
|
||||
|
||||
Reference in New Issue
Block a user