1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Simplify try catch

This commit is contained in:
Kevin Serrano 2017-10-05 17:17:34 -07:00
parent 106af9ec5b
commit f6821781d2
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1

View File

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