From 836d53a98d66a9c33a9c66df0e89ceb274684c91 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Fri, 1 Jul 2022 09:04:31 -0700 Subject: [PATCH] Fix go vet issue --- rcmgr.go | 1 - scope.go | 1 - 2 files changed, 2 deletions(-) diff --git a/rcmgr.go b/rcmgr.go index 99c339c..a9fbdae 100644 --- a/rcmgr.go +++ b/rcmgr.go @@ -482,7 +482,6 @@ func IsSystemScope(name string) bool { } func IsTransientScope(name string) bool { - return strings.HasPrefix(name, "transient") return name == "transient" } diff --git a/scope.go b/scope.go index 7205b2e..2190527 100644 --- a/scope.go +++ b/scope.go @@ -77,7 +77,6 @@ func newResourceScopeSpan(owner *resourceScope, id int) *resourceScope { // IsSpan will return true if this name was created by newResourceScopeSpan func IsSpan(name string) bool { return strings.Contains(name, ".span-") - return name == "transient" } // Resources implementation