From 23d585f255af235ad7345cd570a55361228029fa Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 7 May 2020 16:37:02 +0200 Subject: [PATCH] REFACTOR: removes unreachable statement (#9680) --- lib/javascripts/messageformat-lookup.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/javascripts/messageformat-lookup.js b/lib/javascripts/messageformat-lookup.js index 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); }; - })();