From 778820ba06d35ce1f736b3165f1ae7f4f498845b Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Tue, 16 Jan 2024 14:09:57 +0530 Subject: [PATCH] detect/alert: remove unnecessary else --- src/detect-engine-alert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detect-engine-alert.c b/src/detect-engine-alert.c index f9cbed1564..f9f12f9b78 100644 --- a/src/detect-engine-alert.c +++ b/src/detect-engine-alert.c @@ -319,8 +319,7 @@ static int AlertQueueSortHelper(const void *a, const void *b) const PacketAlert *pa1 = b; if (pa1->num == pa0->num) return pa0->tx_id < pa1->tx_id ? 1 : -1; - else - return pa0->num > pa1->num ? 1 : -1; + return pa0->num > pa1->num ? 1 : -1; } /** \internal -- 2.47.2