fix js error

This commit is contained in:
monoid 2021-01-25 21:47:18 +09:00
parent 6883e5ddb0
commit 98a5f52dab

View File

@ -41,8 +41,8 @@ export class ContentList extends event.EventEmitter{
} }
async delete(c:ContentFile){ async delete(c:ContentFile){
let r = true; let r = true;
r &&= this.cl.delete(c.path); r = this.cl.delete(c.path) && r;
r &&= this.hl.delete(await c.getHash()); r = this.hl.delete(await c.getHash()) && r;
this.emit('delete',c); this.emit('delete',c);
return r; return r;
} }