From 98a5f52dabc22e0650030c217813c8207337f3af Mon Sep 17 00:00:00 2001 From: monoid Date: Mon, 25 Jan 2021 21:47:18 +0900 Subject: [PATCH] fix js error --- src/diff/content_list.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diff/content_list.ts b/src/diff/content_list.ts index a3b268c..46a6aee 100644 --- a/src/diff/content_list.ts +++ b/src/diff/content_list.ts @@ -41,8 +41,8 @@ export class ContentList extends event.EventEmitter{ } async delete(c:ContentFile){ let r = true; - r &&= this.cl.delete(c.path); - r &&= this.hl.delete(await c.getHash()); + r = this.cl.delete(c.path) && r; + r = this.hl.delete(await c.getHash()) && r; this.emit('delete',c); return r; }