Apply go fix modernizations

This commit is contained in:
Ian Gulliver
2026-03-05 11:39:36 -08:00
parent 41f3602696
commit dd360b8e28
10 changed files with 57 additions and 60 deletions

View File

@@ -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 {