Skip to content

Commit

Permalink
avoid wrapping r and lose signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchy committed Nov 3, 2024
1 parent 812283f commit 22dc110
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/providers/pluginfw/framework/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func WrapResource(r resource.Resource) resource.Resource {
var wrapped resource.Resource
wrapped = Resource{Resource: r}
var wrapped resource.Resource = r
if c, ok := wrapped.(resource.ResourceWithConfigure); ok {
wrapped = Configurer{c}
}
Expand Down

0 comments on commit 22dc110

Please sign in to comment.