address: minor var name change.

This commit is contained in:
Christopher Jeffrey 2017-07-25 16:38:12 -07:00
parent 957c4e8c93
commit 9a2d39c751
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -881,18 +881,18 @@ Address.getType = function getType(prefix, network) {
*/
function isMixedCase(str) {
let upper = false;
let lower = false;
let upper = false;
for (let i = 0; i < str.length; i++) {
let ch = str.charCodeAt(i);
if (ch & 32)
upper = true;
else
lower = true;
else
upper = true;
if (upper && lower)
if (lower && upper)
return true;
}