2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-09 22:22:54 +08:00

REFACTOR: removes unreachable statement (#9680)

This commit is contained in:
Joffrey JAFFEUX 2020-05-07 16:37:02 +02:00 committed by GitHub
parent 8be0ba3aa4
commit 23d585f255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
};
})();