Fix copying function in posture checks process (#1605)

This commit is contained in:
Bethuel Mmbaga 2024-02-21 19:19:13 +03:00 committed by GitHub
parent d65602f904
commit 51fa3c92c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ func (cd ChecksDefinition) Copy() ChecksDefinition {
Action: geoCheck.Action,
Locations: make([]Location, len(geoCheck.Locations)),
}
copy(cd.GeoLocationCheck.Locations, geoCheck.Locations)
copy(cdCopy.GeoLocationCheck.Locations, geoCheck.Locations)
}
return cdCopy
}