Commit 6ee251fd by Boris Kocherov

zipfilestorage: cosmetic changes

1 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
throw new jIO.util.jIOError("Cannot find document", 404);
}
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: "
+ '/' + id + " , " + name,
throw new jIO.util.jIOError("Cannot find attachment: " +
'/' + id + " , " + name,
404);
}
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
throw new jIO.util.jIOError("Cannot find document", 404);
}
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: "
+ '/' + id + " , " + name,
throw new jIO.util.jIOError("Cannot find attachment: " +
'/' + id + " , " + name,
404);
}
zip.remove(attachId);
......
......@@ -210,8 +210,8 @@
throw new jIO.util.jIOError("Cannot find document", 404);
}
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: "
+ '/' + id + " , " + name,
throw new jIO.util.jIOError("Cannot find attachment: " +
'/' + id + " , " + name,
404);
}
return zip.file(attachId).async('blob');
......@@ -228,8 +228,8 @@
throw new jIO.util.jIOError("Cannot find document", 404);
}
if (!(zip.files.hasOwnProperty(attachId) && !zip.files[attachId].dir)) {
throw new jIO.util.jIOError("Cannot find attachment: "
+ '/' + id + " , " + name,
throw new jIO.util.jIOError("Cannot find attachment: " +
'/' + id + " , " + name,
404);
}
zip.remove(attachId);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!