From a760d5f57ffb767728a8b4cb3899a584119e5f09 Mon Sep 17 00:00:00 2001 From: Timur Solodovnikov Date: Mon, 18 Dec 2023 14:24:13 -0800 Subject: [PATCH] nit --- pubsub/azuresb/azuresb_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pubsub/azuresb/azuresb_test.go b/pubsub/azuresb/azuresb_test.go index 4d85823449..65d9d3112d 100644 --- a/pubsub/azuresb/azuresb_test.go +++ b/pubsub/azuresb/azuresb_test.go @@ -343,9 +343,7 @@ func BenchmarkAzureServiceBusPubSub(b *testing.B) { if err != nil { b.Fatal(err) } - } - - if sbHostname != "" { + } else if sbHostname != "" { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { b.Fatal(err)