Apply suggestions from code review

This commit is contained in:
Lance Pioch 2024-06-03 10:34:08 -04:00 committed by GitHub
parent f3171939a4
commit 5a3b50b31f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,11 +113,9 @@ class AllocationsRelationManager extends RelationManager
$start = max((int) $start, 0);
$end = min((int) $end, 2 ** 16 - 1);
$range = range($start, $end);
foreach ($range as $i) {
foreach (range($start, $end) as $i) {
$ports->push($i);
}
}
$uniquePorts = $ports->unique()->values();