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
1 changed files with 2 additions and 5 deletions

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