Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Fix go vet issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jul 1, 2022
1 parent 0f38042 commit 836d53a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion rcmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ func IsSystemScope(name string) bool {
}

func IsTransientScope(name string) bool {
return strings.HasPrefix(name, "transient")
return name == "transient"
}

Expand Down
1 change: 0 additions & 1 deletion scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 836d53a

Please sign in to comment.