diff options
author | Doug Kearns <dougkearns@gmail.com> | 2009-06-25 23:36:34 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2009-06-28 16:03:20 +1000 |
commit | 4afccff5e94466fab7e7e0405aa74a24a0d70421 (patch) | |
tree | 8ea4014513e58fbb98e48bd3b48fbbaf587bb5e1 | |
parent | a64565e1b6ce490a1f7168291ec294a8ffd1848f (diff) | |
download | pentadactyl-4afccff5e94466fab7e7e0405aa74a24a0d70421.tar.gz |
Always try and return a nsIFile from io.createTempFile.
-rw-r--r-- | common/content/io.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/content/io.js b/common/content/io.js index 9feee498..b398626e 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -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; }, /** |