1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-17 10:53:32 +02:00

Always try and return a nsIFile from io.createTempFile.

This commit is contained in:
Doug Kearns
2009-06-25 23:36:34 +10:00
parent a64565e1b6
commit 4afccff5e9

View File

@@ -725,11 +725,7 @@ function IO() //{{{
file.append(tmpName); file.append(tmpName);
file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0600); file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0600);
if (file.exists())
return file; return file;
else
return null; // XXX
}, },
/** /**