Skip to content

Commit

Permalink
corrected lint error
Browse files Browse the repository at this point in the history
Error: ./blox/options.go:53:20: the argument is already a string, there's no need to use fmt.Sprintf (S1025)
  • Loading branch information
ehsan6sha committed Nov 10, 2023
1 parent 300c290 commit f85fd17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blox/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package blox
import (
"bytes"
"errors"
"fmt"
"io"
"path"
"time"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f85fd17

Please sign in to comment.