Skip to content

Commit

Permalink
chore: no need to use fmt.Sprintf (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Oct 22, 2023
1 parent b49ff66 commit 6284bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/domain/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (i *Interface) CopyCalculatedAttributes(src *Interface) {
func (i *Interface) GetConfigFileName() string {
reg := regexp.MustCompile("[^a-zA-Z0-9-_]+")

filename := fmt.Sprintf("%s", internal.TruncateString(string(i.Identifier), 8))
filename := internal.TruncateString(string(i.Identifier), 8)
filename = reg.ReplaceAllString(filename, "")
filename += ".conf"

Expand Down

0 comments on commit 6284bc8

Please sign in to comment.