Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: use proto.CloneOf (#18092)

p0nya0297b544331
diff --git a/backend/api/v1/audit.go b/backend/api/v1/audit.go
index 3c663a4588..6b57d1f4e0 100644
--- a/backend/api/v1/audit.go
+++ b/backend/api/v1/audit.go
@@ -485,10 +485,7 @@ func redactInstance(i *v1pb.Instance) *v1pb.Instance {
return nil
}
// Clone the instance to avoid modifying the original response
- cloned, ok := proto.Clone(i).(*v1pb.Instance)
- if !ok {
- return i
- }
+ cloned := proto.CloneOf(i)
var dataSources []*v1pb.DataSource
for _, d := range cloned.DataSources {
dataSources = append(dataSources, redactDataSource(d))