From 62473dea6016d0ed9d2b3a8501de0e357be6dbc4 Mon Sep 17 00:00:00 2001 From: 0xf8 <0xf8.dev@proton.me> Date: Sat, 15 Apr 2023 19:09:17 -0400 Subject: [PATCH] Fix logic error in judge::send_debug --- src/judge.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/judge.rs b/src/judge.rs index 68c53c9..5838992 100644 --- a/src/judge.rs +++ b/src/judge.rs @@ -96,13 +96,13 @@ impl Judgement { } let mut result = JudgementResult::LikelyScam; - if count_all == 0 { - result = JudgementResult::Ok - } if count_all < total { result = JudgementResult::MaybeScam } - + if count_all == 0 { + result = JudgementResult::Ok + } + // Send message let msg = RoomMessageEventContent::text_html( format!("{counter:?}, {count_all}/{total}, {result:?}"),