Apply go fix modernizations
This commit is contained in:
8
nodes.go
8
nodes.go
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"slices"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -133,12 +134,7 @@ func (n *Nodes) isSharedName(name string) bool {
|
||||
if n.t.config == nil {
|
||||
return false
|
||||
}
|
||||
for _, shared := range n.t.config.SharedNames {
|
||||
if shared == name {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
return slices.Contains(n.t.config.SharedNames, name)
|
||||
}
|
||||
|
||||
func (n *Nodes) createNode() *Node {
|
||||
|
||||
Reference in New Issue
Block a user