Slight improvements to some Clone functions

This commit is contained in:
arberkatellari
2025-04-07 18:25:03 +02:00
committed by Dan Christian Bogos
parent de349e2482
commit 0e5c5a9e60
14 changed files with 301 additions and 93 deletions

View File

@@ -67,6 +67,9 @@ type AttributeProfile struct {
// Clone method for AttributeProfile struct
func (ap *AttributeProfile) Clone() *AttributeProfile {
if ap == nil {
return nil
}
clone := &AttributeProfile{
Tenant: ap.Tenant,
ID: ap.ID,