mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	add golangci-lint linter (#5499)
This commit is contained in:
		| @@ -204,7 +204,6 @@ func (h *CloudDNS) updateZones(ctx context.Context) error { | ||||
| 				(*z[i]).z = newZ | ||||
| 				h.zMu.Unlock() | ||||
| 			} | ||||
|  | ||||
| 		}(zName, z) | ||||
| 	} | ||||
| 	// Collect errors (if any). This will also sync on all zones updates | ||||
|   | ||||
| @@ -152,7 +152,6 @@ func TestCloudDNS(t *testing.T) { | ||||
|  | ||||
| 			m.Authoritative = true | ||||
| 			rcode = dns.RcodeSuccess | ||||
|  | ||||
| 		} | ||||
|  | ||||
| 		m.SetRcode(r, rcode) | ||||
|   | ||||
| @@ -81,16 +81,19 @@ func setup(c *caddy.Controller) error { | ||||
| 		ctx, cancel := context.WithCancel(context.Background()) | ||||
| 		client, err := f(ctx, opt) | ||||
| 		if err != nil { | ||||
| 			cancel() | ||||
| 			return err | ||||
| 		} | ||||
|  | ||||
| 		h, err := New(ctx, client, keys, up) | ||||
| 		if err != nil { | ||||
| 			cancel() | ||||
| 			return plugin.Error("clouddns", c.Errf("failed to create plugin: %v", err)) | ||||
| 		} | ||||
| 		h.Fall = fall | ||||
|  | ||||
| 		if err := h.Run(ctx); err != nil { | ||||
| 			cancel() | ||||
| 			return plugin.Error("clouddns", c.Errf("failed to initialize plugin: %v", err)) | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user