mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -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:
@@ -417,7 +417,7 @@ func parseAnswerRules(name string, args []string) (auto bool, rules ResponseRule
|
||||
if auto && nameRules > 0 {
|
||||
return false, nil, fmt.Errorf("auto name answer rule cannot be combined with explicit name anwer rules")
|
||||
}
|
||||
return
|
||||
return auto, rules, nil
|
||||
}
|
||||
|
||||
// hasClosingDot returns true if s has a closing dot at the end.
|
||||
|
||||
Reference in New Issue
Block a user