Skip to content

Commit

Permalink
Remove os detection, as this is not used right now
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Nov 3, 2019
1 parent 492607b commit 5ce9c51
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,20 +361,13 @@ module.exports = {
adb
.getDeviceName()
.then(device => {
adb
.getOs()
.then(operatingSystem => {
global.api
.resolveAlias(device)
.then(resolvedDevice => {
global.mainEvent.emit("device:detected", resolvedDevice);
})
.catch(error => {
utils.errorToUser(error, "Resolve device alias");
});
global.api
.resolveAlias(device)
.then(resolvedDevice => {
global.mainEvent.emit("device:detected", resolvedDevice);
})
.catch(error => {
utils.errorToUser(error, "Wait for device");
utils.errorToUser(error, "Resolve device alias");
});
})
.catch(error => {
Expand Down

0 comments on commit 5ce9c51

Please sign in to comment.