summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2009-06-25 23:36:34 +1000
committerDoug Kearns <dougkearns@gmail.com>2009-06-28 16:03:20 +1000
commit4afccff5e94466fab7e7e0405aa74a24a0d70421 (patch)
tree8ea4014513e58fbb98e48bd3b48fbbaf587bb5e1
parenta64565e1b6ce490a1f7168291ec294a8ffd1848f (diff)
downloadpentadactyl-4afccff5e94466fab7e7e0405aa74a24a0d70421.tar.gz
Always try and return a nsIFile from io.createTempFile.
-rw-r--r--common/content/io.js6
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;
},
/**