From 34af049986da9f199c1f771634c0621ada4a4f4d Mon Sep 17 00:00:00 2001 From: Uri Shamay Date: Thu, 21 Oct 2021 10:07:27 +0300 Subject: [PATCH] fix new Cloudflare provider test failure --- pkg/providers/cloudflare_workers_kv.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/providers/cloudflare_workers_kv.go b/pkg/providers/cloudflare_workers_kv.go index 1aa2e083..57bf0701 100644 --- a/pkg/providers/cloudflare_workers_kv.go +++ b/pkg/providers/cloudflare_workers_kv.go @@ -27,13 +27,13 @@ func NewCloudflareClient() (core.Provider, error) { os.Getenv("CLOUDFLARE_API_EMAIL"), ) - cloudflare.UsingAccount(os.Getenv("CLOUDFLARE_ACCOUNT_ID"))(api) //nolint - if err != nil { return nil, err } - return &Cloudflare{client: api}, err + cloudflare.UsingAccount(os.Getenv("CLOUDFLARE_ACCOUNT_ID"))(api) //nolint + + return &Cloudflare{client: api}, nil } func (c *Cloudflare) Name() string {