Skip to content

Commit 34af049

Browse files
committed
fix new Cloudflare provider test failure
1 parent aff0fa2 commit 34af049

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/providers/cloudflare_workers_kv.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ func NewCloudflareClient() (core.Provider, error) {
2727
os.Getenv("CLOUDFLARE_API_EMAIL"),
2828
)
2929

30-
cloudflare.UsingAccount(os.Getenv("CLOUDFLARE_ACCOUNT_ID"))(api) //nolint
31-
3230
if err != nil {
3331
return nil, err
3432
}
3533

36-
return &Cloudflare{client: api}, err
34+
cloudflare.UsingAccount(os.Getenv("CLOUDFLARE_ACCOUNT_ID"))(api) //nolint
35+
36+
return &Cloudflare{client: api}, nil
3737
}
3838

3939
func (c *Cloudflare) Name() string {

0 commit comments

Comments
 (0)