Commit 6ee251fd authored by Boris Kocherov's avatar Boris Kocherov

zipfilestorage: cosmetic changes

parent c8628f06
...@@ -224,8 +224,8 @@ for(d=1;d<=W;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2 ...@@ -224,8 +224,8 @@ for(d=1;d<=W;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2
throw new jIO.util.jIOError("Cannot find document", 404); throw new jIO.util.jIOError("Cannot find document", 404);
} }
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) { if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: " throw new jIO.util.jIOError("Cannot find attachment: " +
+ '/' + id + " , " + name, '/' + id + " , " + name,
404); 404);
} }
return zip.file(attachId).async('blob'); return zip.file(attachId).async('blob');
...@@ -242,8 +242,8 @@ for(d=1;d<=W;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2 ...@@ -242,8 +242,8 @@ for(d=1;d<=W;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2
throw new jIO.util.jIOError("Cannot find document", 404); throw new jIO.util.jIOError("Cannot find document", 404);
} }
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) { if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: " throw new jIO.util.jIOError("Cannot find attachment: " +
+ '/' + id + " , " + name, '/' + id + " , " + name,
404); 404);
} }
zip.remove(attachId); zip.remove(attachId);
......
...@@ -210,8 +210,8 @@ ...@@ -210,8 +210,8 @@
throw new jIO.util.jIOError("Cannot find document", 404); throw new jIO.util.jIOError("Cannot find document", 404);
} }
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) { if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: " throw new jIO.util.jIOError("Cannot find attachment: " +
+ '/' + id + " , " + name, '/' + id + " , " + name,
404); 404);
} }
return zip.file(attachId).async('blob'); return zip.file(attachId).async('blob');
...@@ -228,8 +228,8 @@ ...@@ -228,8 +228,8 @@
throw new jIO.util.jIOError("Cannot find document", 404); throw new jIO.util.jIOError("Cannot find document", 404);
} }
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) { if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: " throw new jIO.util.jIOError("Cannot find attachment: " +
+ '/' + id + " , " + name, '/' + id + " , " + name,
404); 404);
} }
zip.remove(attachId); zip.remove(attachId);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment