mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
add golangci-lint linter (#5499)
This commit is contained in:
@@ -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