mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 17:42:30 +02:00
Always try and return a nsIFile from io.createTempFile.
This commit is contained in:
1 parent
a64565e1b6
commit
4afccff5e9
1 file changed
+1
-5
@@ -725,11 +725,7 @@ function IO() //{{{
|
||||
file.append(tmpName);
|
||||
file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0600);
|
||||
|
||||
if (file.exists())
|
||||
return file;
|
||||
else
|
||||
return null; // XXX
|
||||
|
||||
return file;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user