Fix go vet issue

This commit is contained in:
Marco Munizaga 2022-07-01 09:04:31 -07:00
parent 0f3804229e
commit 836d53a98d
2 changed files with 0 additions and 2 deletions

View File

@ -482,7 +482,6 @@ func IsSystemScope(name string) bool {
} }
func IsTransientScope(name string) bool { func IsTransientScope(name string) bool {
return strings.HasPrefix(name, "transient")
return name == "transient" return name == "transient"
} }

View File

@ -77,7 +77,6 @@ func newResourceScopeSpan(owner *resourceScope, id int) *resourceScope {
// IsSpan will return true if this name was created by newResourceScopeSpan // IsSpan will return true if this name was created by newResourceScopeSpan
func IsSpan(name string) bool { func IsSpan(name string) bool {
return strings.Contains(name, ".span-") return strings.Contains(name, ".span-")
return name == "transient"
} }
// Resources implementation // Resources implementation