mirror of
https://github.com/appium/appium.git
synced 2026-02-11 04:20:00 -06:00
Fix issue when iterating the entries
Every time you call entries.pop(), the entries.length minus 1. We should check entries.length>0 as the end of loop. This request is same as pull request #2426. fix a typo error.
This commit is contained in:
@@ -566,7 +566,7 @@ ADB.prototype.checkApkKeystoreMatch = function (keytool, md5re, keystoreHash,
|
||||
}
|
||||
};
|
||||
|
||||
for (var i = 0; i < entries.length; i++) {
|
||||
while (entries.length > 0) {
|
||||
if (responded) break;
|
||||
var entry = entries.pop(); // meta-inf tends to be at the end
|
||||
entry = entry.entryName;
|
||||
|
||||
Reference in New Issue
Block a user