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

Unified Diff: lib/filterValidation.js

Issue 29709602: Issue 6417 - Remove Utils.getString and the last (faulty) use of it (Closed)
Patch Set: Created Feb. 26, 2018, 3:02 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 | lib/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterValidation.js
diff --git a/lib/filterValidation.js b/lib/filterValidation.js
index c1d81a7a860b13ad6956977b9e140c4112443689..a2c244ecef4609338abc929f8a173b0de17784dd 100644
--- a/lib/filterValidation.js
+++ b/lib/filterValidation.js
@@ -21,7 +21,6 @@
const {Filter, InvalidFilter, ElemHideBase, ElemHideEmulationFilter} =
require("filterClasses");
-const {Utils} = require("utils");
/**
* An error returned by
@@ -73,7 +72,7 @@ FilterParsingError.prototype = {
{
let message;
if (this.reason)
- message = Utils.getString(this.reason);
+ message = browser.i18n.getMessage(this.reason);
else
{
message = browser.i18n.getMessage(
« no previous file with comments | « no previous file | lib/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld