Skip to content

Commit 9709da0

Browse files
authored
Use raw concat instead of fmt.Sprintf for fullyQualifiedName (#124)
1 parent f874b52 commit 9709da0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scope.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
package tally
2222

2323
import (
24-
"fmt"
2524
"io"
2625
"sync"
2726
"time"
@@ -575,7 +574,7 @@ func (s *scope) fullyQualifiedName(name string) string {
575574
// output we're creating is a concatenation of the sanitized inputs.
576575
// If we change the concatenation to involve other inputs or characters,
577576
// we'll need to sanitize them too.
578-
return fmt.Sprintf("%s%s%s", s.prefix, s.separator, name)
577+
return s.prefix + s.separator + name
579578
}
580579

581580
func (s *scope) copyAndSanitizeMap(tags map[string]string) map[string]string {

0 commit comments

Comments
 (0)