mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 16:45:46 +01:00
Always try and return a nsIFile from io.createTempFile.
This commit is contained in:
@@ -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
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user