Skip to content

Commit

Permalink
fix new Cloudflare provider test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpxchg16 committed Oct 21, 2021
1 parent aff0fa2 commit 34af049
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/providers/cloudflare_workers_kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 34af049

Please sign in to comment.