3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Factoids: remove unnecessary statement

This commit is contained in:
Pragmatic Software 2020-06-16 21:29:47 -07:00
parent cbfcab6d77
commit a2c918c94e

View File

@ -598,7 +598,6 @@ sub select_weighted_item_from_list {
}
my $n = int rand $weight_sum;
$index = 0;
for my $weight (sort { $a->[0] <=> $b->[0] } @weights) {
if ($n < $weight->[0]) {