Don't try to delete downloaded ZIP file if it doesn't exist

This commit is contained in:
Dan Stillman 2009-04-24 22:13:10 +00:00
parent 67ea216095
commit b0e5b1763a

View file

@ -1045,7 +1045,9 @@ Zotero.Sync.Storage = new function () {
}
catch (e) {
Zotero.debug(zipFile.leafName + " is not a valid ZIP file", 2);
zipFile.remove(null);
if (zipFile.exists()) {
zipFile.remove(false);
}
return;
}