REFACTOR: removes unreachable statement (#9680)
This commit is contained in:
parent
8be0ba3aa4
commit
23d585f255
|
@ -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);
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue