fix js error
This commit is contained in:
parent
6883e5ddb0
commit
98a5f52dab
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user