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:
parent
106af9ec5b
commit
f6821781d2
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user