From 1e7a49eab5c3935f1d79b4792bede42aea7fc4b5 Mon Sep 17 00:00:00 2001 From: xpadev-net Date: Fri, 10 Jun 2022 18:19:08 +0900 Subject: [PATCH] remove meaningless codes --- src/main.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index f69f5efd..4e7e332a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -398,7 +398,7 @@ class NiconiComments { break; } } - if (left_pos <= 40 && !is_break) { + if (left_pos <= 40) { for (let k in this.collision_left[vpos]) { let l = this.collision_left[vpos][k]; if ((posY < data[l]!.posY + data[l]!.height && posY + comment.height > data[l]!.posY) && data[l]!.owner === comment.owner) { @@ -421,9 +421,6 @@ class NiconiComments { break; } } - if (is_break) { - break; - } } if (is_break) { break;