mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 02:15:11 -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:
@@ -192,7 +192,7 @@ func countRecords(result []dns.RR) (cname int, address int, mx int, sorted bool)
|
||||
state = Any
|
||||
}
|
||||
}
|
||||
return
|
||||
return cname, address, mx, sorted
|
||||
}
|
||||
|
||||
func handler() plugin.Handler {
|
||||
|
||||
Reference in New Issue
Block a user