A platform for community discussion. Free, open, simple.
REFACTOR: removes unreachable statement (#9680)
Joffrey JAFFEUX23d585f255af
diff --git a/lib/javascripts/messageformat-lookup.js b/lib/javascripts/messageformat-lookup.jsindex e34cd4803bd..7e31717756c 100644--- a/lib/javascripts/messageformat-lookup.js+++ b/lib/javascripts/messageformat-lookup.js@@ -1,17 +1,14 @@(function() {-I18n.messageFormat = function(key, options) {var fn = I18n._compiledMFs[key];if (fn) {try {return fn(options);- } catch(err) {+ } catch (err) {return err.message;}} else {- return 'Missing Key: ' + key;+ return "Missing Key: " + key;}- return I18n._compiledMFs[key](options);};-})();