Skip to content

Commit cd74db0

Browse files
fixed lint
1 parent 888f791 commit cd74db0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

osscluster.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,15 +2182,6 @@ func (c *ClusterClient) NewDynamicResolver() *commandInfoResolver {
21822182
}
21832183
}
21842184

2185-
func appendUniqueNode(nodes []*clusterNode, node *clusterNode) []*clusterNode {
2186-
for _, n := range nodes {
2187-
if n == node {
2188-
return nodes
2189-
}
2190-
}
2191-
return append(nodes, node)
2192-
}
2193-
21942185
func appendIfNotExist[T comparable](vals []T, newVal T) []T {
21952186
for _, v := range vals {
21962187
if v == newVal {

0 commit comments

Comments
 (0)