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:
Ville Vesilehto
2025-09-21 18:17:35 +03:00
committed by GitHub
parent dd029c931f
commit 0d05791404
5 changed files with 5 additions and 4 deletions

View File

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