From 4afccff5e94466fab7e7e0405aa74a24a0d70421 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 25 Jun 2009 23:36:34 +1000 Subject: [PATCH] Always try and return a nsIFile from io.createTempFile. --- common/content/io.js | 6 +----- 1 file changed, 1 insertion(+), 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; }, /**