Linted to satisfy new rules

This commit is contained in:
n1474335 2019-07-05 12:36:15 +01:00
parent e4e32a9c56
commit b272d3b32f
5 changed files with 16 additions and 15 deletions

View file

@ -18,11 +18,11 @@ const Zlib = zip.Zlib;
*/
self.addEventListener("message", function(e) {
const r = e.data;
if (!r.hasOwnProperty("outputs")) {
if (!("outputs" in r)) {
log.error("No files were passed to the ZipWorker.");
return;
}
if (!r.hasOwnProperty("filename")) {
if (!("filename" in r)) {
log.error("No filename was passed to the ZipWorker");
return;
}