mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Slight improvements to some Clone functions
This commit is contained in:
committed by
Dan Christian Bogos
parent
de349e2482
commit
0e5c5a9e60
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user