mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04: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:
@@ -158,5 +158,5 @@ func templateParse(c *caddy.Controller) (handler Handler, err error) {
|
||||
handler.Templates = append(handler.Templates, t)
|
||||
}
|
||||
|
||||
return
|
||||
return handler, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user