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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user