From 9709da01ea993da74e308d699f1853277b9dd68b Mon Sep 17 00:00:00 2001 From: Matt Way Date: Tue, 21 Jan 2020 10:47:58 -0500 Subject: [PATCH] Use raw concat instead of fmt.Sprintf for fullyQualifiedName (#124) --- scope.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scope.go b/scope.go index 3329984f..be7a43cd 100644 --- a/scope.go +++ b/scope.go @@ -21,7 +21,6 @@ package tally import ( - "fmt" "io" "sync" "time" @@ -575,7 +574,7 @@ func (s *scope) fullyQualifiedName(name string) string { // output we're creating is a concatenation of the sanitized inputs. // If we change the concatenation to involve other inputs or characters, // we'll need to sanitize them too. - return fmt.Sprintf("%s%s%s", s.prefix, s.separator, name) + return s.prefix + s.separator + name } func (s *scope) copyAndSanitizeMap(tags map[string]string) map[string]string {