From f85fd17409d5d22a982ad724429ea174f3a481c7 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Fri, 10 Nov 2023 14:50:16 -0500 Subject: [PATCH] corrected lint error Error: ./blox/options.go:53:20: the argument is already a string, there's no need to use fmt.Sprintf (S1025) --- blox/options.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blox/options.go b/blox/options.go index 4b9149e..d631911 100644 --- a/blox/options.go +++ b/blox/options.go @@ -3,7 +3,6 @@ package blox import ( "bytes" "errors" - "fmt" "io" "path" "time" @@ -50,7 +49,7 @@ func newOptions(o ...Option) (*options, error) { return nil, errors.New("blox pool name must be specified") } if opts.topicName == "" { - opts.topicName = fmt.Sprintf("%s", path.Clean(opts.name)) + opts.topicName = path.Clean(opts.name) } if opts.h == nil { var err error