mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 14:05:45 +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.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