mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 01:25:46 +01:00
Get rid of apparently redundant QIs.
This commit is contained in:
@@ -294,7 +294,7 @@ var File = Class("File", {
|
||||
let file = services.File();
|
||||
|
||||
if (path instanceof Ci.nsIFile)
|
||||
file = path.QueryInterface(Ci.nsIFile).clone();
|
||||
file = path.clone();
|
||||
else if (/file:\/\//.test(path))
|
||||
file = services["file:"]().getFileFromURLSpec(path);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user