From 778af9712d8946be0d006e08d222d6ff2937a775 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Ferrero Date: Mon, 1 May 2023 21:46:16 +0200 Subject: [PATCH] fix: Assign ClientOptions if provided (#185) --- kusto/kcsb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kusto/kcsb.go b/kusto/kcsb.go index 6c08cd93..064d4ec2 100644 --- a/kusto/kcsb.go +++ b/kusto/kcsb.go @@ -267,7 +267,7 @@ func (kcsb *ConnectionStringBuilder) WithInteractiveLogin(authorityID string) *C // Read more at https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore@v1.2.0/policy#ClientOptions func (kcsb *ConnectionStringBuilder) AttachPolicyClientOptions(options *azcore.ClientOptions) *ConnectionStringBuilder { requireNonEmpty(dataSource, kcsb.DataSource) - if options == nil { + if options != nil { kcsb.ClientOptions = options } return kcsb