mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
add golangci-lint linter (#5499)
This commit is contained in:
@@ -134,7 +134,6 @@ func (h *Azure) updateZones(ctx context.Context) error {
|
||||
return fmt.Errorf("errors updating zones: %v", errs)
|
||||
}
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
func updateZoneFromPublicResourceSet(recordSet publicdns.RecordSetListResultPage, newZ *file.Zone) {
|
||||
@@ -297,7 +296,6 @@ func updateZoneFromPrivateResourceSet(recordSet privatedns.RecordSetListResultPa
|
||||
Target: dns.Fqdn(*CNAME)}
|
||||
newZ.Insert(cname)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,20 +29,24 @@ func setup(c *caddy.Controller) error {
|
||||
|
||||
publicDNSClient := publicAzureDNS.NewRecordSetsClient(env.Values[auth.SubscriptionID])
|
||||
if publicDNSClient.Authorizer, err = env.GetAuthorizer(); err != nil {
|
||||
cancel()
|
||||
return plugin.Error("azure", err)
|
||||
}
|
||||
|
||||
privateDNSClient := privateAzureDNS.NewRecordSetsClient(env.Values[auth.SubscriptionID])
|
||||
if privateDNSClient.Authorizer, err = env.GetAuthorizer(); err != nil {
|
||||
cancel()
|
||||
return plugin.Error("azure", err)
|
||||
}
|
||||
|
||||
h, err := New(ctx, publicDNSClient, privateDNSClient, keys, accessMap)
|
||||
if err != nil {
|
||||
cancel()
|
||||
return plugin.Error("azure", err)
|
||||
}
|
||||
h.Fall = fall
|
||||
if err := h.Run(ctx); err != nil {
|
||||
cancel()
|
||||
return plugin.Error("azure", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user