mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 19:35:36 +08:00
REFACTOR: removes unreachable statement (#9680)
This commit is contained in:
parent
8be0ba3aa4
commit
23d585f255
@ -1,17 +1,14 @@
|
|||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
I18n.messageFormat = function(key, options) {
|
I18n.messageFormat = function(key, options) {
|
||||||
var fn = I18n._compiledMFs[key];
|
var fn = I18n._compiledMFs[key];
|
||||||
if (fn) {
|
if (fn) {
|
||||||
try {
|
try {
|
||||||
return fn(options);
|
return fn(options);
|
||||||
} catch(err) {
|
} catch (err) {
|
||||||
return err.message;
|
return err.message;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return 'Missing Key: ' + key;
|
return "Missing Key: " + key;
|
||||||
}
|
}
|
||||||
return I18n._compiledMFs[key](options);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user