MCPcopy Index your code
hub / github.com/apache/devlake / UnwrapObject

Function UnwrapObject

backend/core/models/dynamic_tabler.go:130–135  ·  view source on GitHub ↗

UnwrapObject if the actual object is wrapped in some proxy, it unwinds and returns it, otherwise this is idempotent

(ifc any)

Source from the content-addressed store, hash-verified

128
129// UnwrapObject if the actual object is wrapped in some proxy, it unwinds and returns it, otherwise this is idempotent
130func UnwrapObject(ifc any) any {
131 if dynamic, ok := ifc.(DynamicTabler); ok {
132 return dynamic.Unwrap()
133 }
134 return ifc
135}
136
137// DumpInfo Useful function for debugging purposes - to see what's in the struct at runtime
138func DumpInfo(tbl DynamicTabler) map[string]any {

Callers

nothing calls this directly

Calls 1

UnwrapMethod · 0.65

Tested by

no test coverage detected