Skip to content

Commit

Permalink
Simplified while loop in FromBase58 to match ToBase58
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitn committed Oct 28, 2018
1 parent f4de4de commit a3c5b1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/operations/FromBase58.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ class FromBase58 extends Operation {
}
});

while (zeroPrefix > 0) {
while (zeroPrefix--) {
result.push(0);
zeroPrefix--;
}

return result.reverse();
Expand Down

0 comments on commit a3c5b1e

Please sign in to comment.