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
@@ -111,6 +111,9 @@ func (sm StringMap) Copy(o StringMap) {
|
||||
}
|
||||
|
||||
func (sm StringMap) Clone() StringMap {
|
||||
if sm == nil {
|
||||
return nil
|
||||
}
|
||||
result := make(StringMap, len(sm))
|
||||
result.Copy(sm)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user