mirror of
https://github.com/fatedier/frp.git
synced 2026-04-09 02:29:15 +08:00
refactor: fix modernize lint issues (#5215)
This commit is contained in:
@@ -52,7 +52,7 @@ func (pa *Allocator) GetByName(portName string) int {
|
||||
pa.mu.Lock()
|
||||
defer pa.mu.Unlock()
|
||||
|
||||
for i := 0; i < 20; i++ {
|
||||
for range 20 {
|
||||
port := pa.getByRange(builder.rangePortFrom, builder.rangePortTo)
|
||||
if port == 0 {
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user