Bug 1469054 - ESLint: Use integer for the radix on parseInt. r?jdescottes
I am not sure this had caused real issue though.
MozReview-Commit-ID: ISSSJCYcpAm
--- a/devtools/shared/adb/adb-running-checker.js
+++ b/devtools/shared/adb/adb-running-checker.js
@@ -28,17 +28,17 @@ exports.check = async function check() {
state = "wait-version";
break;
case "wait-version":
// TODO: Actually check the version number to make sure the daemon
// supports the commands we want to use
const { length, data } = client.unpackPacket(packetData);
console.debug("length: ", length, "data: ", data);
socket.close();
- const version = parseInt(data, "16");
+ const version = parseInt(data, 16);
if (version >= 31) {
resolve(true);
} else {
console.log("killing existing adb as we need version >= 31");
resolve(false);
}
break;
default: