aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}
}