mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
chore(lint): modernize Go (#7536)
Use modern Go constructs through the modernize analyzer from the golang.org/x/tools package. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -118,7 +118,7 @@ func (d Dnssec) sign(rrs []dns.RR, signerName string, ttl, incep, expir uint32,
|
||||
return sgs, nil
|
||||
}
|
||||
|
||||
sigs, err := d.inflight.Do(k, func() (interface{}, error) {
|
||||
sigs, err := d.inflight.Do(k, func() (any, error) {
|
||||
var sigs []dns.RR
|
||||
for _, k := range d.keys {
|
||||
if d.splitkeys {
|
||||
|
||||
Reference in New Issue
Block a user