Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/utils.js

Issue 29366863: Issue 2709 - Removed legacy failsafe code form (Closed)
Patch Set: Created Dec. 5, 2016, 4:11 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utils.js
diff --git a/lib/utils.js b/lib/utils.js
index 33e2fca6de0e6311cdff38eb84e402679c97db34..e965cad717e4cb7f2c19a8181a4edbebf322f14c 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -19,10 +19,7 @@ var Utils = exports.Utils = {
systemPrincipal: null,
getString: function(id)
{
- if (typeof ext !== "undefined" && "i18n" in ext)
- return ext.i18n.getMessage("global_" + id);
- else
- return id;
+ return ext.i18n.getMessage("global_" + id);
},
runAsync: function(callback)
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld