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:
parent
cbfcab6d77
commit
a2c918c94e
@ -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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user