Simplify try catch

feature/default_network_editable
Kevin Serrano 7 years ago
parent 106af9ec5b
commit f6821781d2
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 6
      app/scripts/platforms/extension.js

@ -18,14 +18,12 @@ class ExtensionPlatform {
}
getPlatformInfo (cb) {
var info
try {
info = extension.runtime.getPlatformInfo(cb)
return extension.runtime.getPlatformInfo(cb)
} catch (e) {
log.debug(e)
info = undefined
return undefined
}
return info
}
}

Loading…
Cancel
Save