From 0722b35e855beeedf9b28b447335df622d8e7b66 Mon Sep 17 00:00:00 2001 From: Tom Jorissen Date: Wed, 20 Dec 2023 16:51:55 +0100 Subject: [PATCH] chore: Simply format string Co-authored-by: Ryan Swanson --- pkg/admin/interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/admin/interface.go b/pkg/admin/interface.go index 371ebddf..d989cfb7 100644 --- a/pkg/admin/interface.go +++ b/pkg/admin/interface.go @@ -244,7 +244,7 @@ func NewPulsarAdmin(conf PulsarAdminConfig) (PulsarAdmin, error) { } } else if conf.ClientCertificatePath != "" { config.AuthPlugin = auth.TLSPluginName - config.AuthParams = fmt.Sprintf("{\"tlsCertFile\": %q, \"tlsKeyFile\": %q}", conf.ClientCertificatePath, conf.ClientCertificateKeyPath) + config.AuthParams = fmt.Sprintf(`{"tlsCertFile": %q, "tlsKeyFile": %q}`, conf.ClientCertificatePath, conf.ClientCertificateKeyPath) adminClient, err = admin.New(config) if err != nil {