Skip to content

Commit

Permalink
detect/alert: remove unnecessary else
Browse files Browse the repository at this point in the history
  • Loading branch information
inashivb authored and victorjulien committed Jan 17, 2024
1 parent 995f5fc commit 778820b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/detect-engine-alert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 778820b

Please sign in to comment.