mirror of
https://github.com/coredns/coredns.git
synced 2025-11-26 13:44:05 -05:00
lint: enable nakedret (#7569)
Replace naked returns with explicit return values to satisfy nakedret linter and improve readability. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -213,7 +213,7 @@ func (n *Node) insert(rr dns.RR) (root *Node, d int) {
|
||||
|
||||
root = n
|
||||
|
||||
return
|
||||
return root, d
|
||||
}
|
||||
|
||||
// DeleteMin deletes the node with the minimum value in the tree.
|
||||
|
||||
Reference in New Issue
Block a user