aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/platforms
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-10-06 08:17:34 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-10-06 08:17:34 +0800
commitf6821781d2ee3b1562008f47d9581ed21efee3ef (patch)
tree096b5a562786a916b336f9982871ad2d00c9e236 /app/scripts/platforms
parent106af9ec5b5671ec312117b1e2bd0ba5350d2085 (diff)
downloadtangerine-wallet-browser-f6821781d2ee3b1562008f47d9581ed21efee3ef.tar
tangerine-wallet-browser-f6821781d2ee3b1562008f47d9581ed21efee3ef.tar.gz
tangerine-wallet-browser-f6821781d2ee3b1562008f47d9581ed21efee3ef.tar.bz2
tangerine-wallet-browser-f6821781d2ee3b1562008f47d9581ed21efee3ef.tar.lz
tangerine-wallet-browser-f6821781d2ee3b1562008f47d9581ed21efee3ef.tar.xz
tangerine-wallet-browser-f6821781d2ee3b1562008f47d9581ed21efee3ef.tar.zst
tangerine-wallet-browser-f6821781d2ee3b1562008f47d9581ed21efee3ef.zip
Simplify try catch
Diffstat (limited to 'app/scripts/platforms')
-rw-r--r--app/scripts/platforms/extension.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
index f9e1d84b7..61d67e1b4 100644
--- a/app/scripts/platforms/extension.js
+++ b/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
}
}