Bug 1486182: Follow-up: Fix ESLint error. r=eslint-fix,test-only

--HG--
extra : rebase_source : df6cfdcd41ec22079340a1f52ae7792df09384ca
This commit is contained in:
Kris Maglione 2018-08-28 14:06:05 -07:00
parent 5b13d58730
commit b72957664f

View File

@ -1,3 +1,4 @@
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
ChromeUtils.import("resource://testing-common/AppInfo.jsm", this);
updateAppInfo({
name: "XPCShell",
@ -8,12 +9,9 @@ updateAppInfo({
registerManifests([do_get_file("data/test_abi.manifest")]);
const catman = Cc["@mozilla.org/categorymanager;1"].
getService(Ci.nsICategoryManager);
function is_registered(name) {
try {
var d = catman.getCategoryEntry("abitest", name);
var d = Services.catMan.getCategoryEntry("abitest", name);
return d == "found";
} catch (e) {
return false;