1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 04:25:44 +01:00

Get rid of apparently redundant QIs.

This commit is contained in:
Kris Maglione
2011-03-19 01:12:22 -04:00
parent b7eb21139a
commit 57dbc1b913
5 changed files with 10 additions and 11 deletions

View File

@@ -24,8 +24,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
this._prefContexts = [];
this.branch = services.pref[defaults ? "getDefaultBranch" : "getBranch"](branch || "");
if (this.branch instanceof Ci.nsIPrefBranch2)
this.branch.QueryInterface(Ci.nsIPrefBranch2);
this.branch instanceof Ci.nsIPrefBranch2;
this.defaults = defaults ? this : this.constructor(branch, true);