AZURE: Cleanup: Errorf is a pure function but its return value is ignored #836 (#843)

Resolves #836
This commit is contained in:
Sump Runlet 2020-09-04 13:30:41 +02:00 committed by GitHub
parent 8e9aa14882
commit f0e08cb01c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,8 +94,7 @@ func (a *azureDNSProvider) getZones() error {
defer cancel()
zonesIterator, zonesErr := a.zonesClient.ListByResourceGroup(ctx, *a.resourceGroup, to.Int32Ptr(100))
if zonesErr != nil {
fmt.Errorf("getZones: zonesErr %v", zonesErr.Error())
return zonesErr
return fmt.Errorf("getZones: zonesErr: %w", zonesErr)
}
// Check getExistingZones and https://github.com/StackExchange/dnscontrol/issues/792 for the details
@ -142,8 +141,7 @@ func (a *azureDNSProvider) ListZones() ([]string, error) {
defer cancel()
zonesIterator, zonesErr := a.zonesClient.ListByResourceGroup(ctx, *a.resourceGroup, to.Int32Ptr(100))
if zonesErr != nil {
fmt.Errorf("ListZones: zonesErr %v", zonesErr.Error())
return nil, zonesErr
return nil, fmt.Errorf("ListZones: zonesErr: %w", zonesErr)
}
// Check getExistingZones and https://github.com/StackExchange/dnscontrol/issues/792 for the details