Fix code linting issue where a slice was created non-empty and appended-to (#19490)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
* Fixed a code linter issue where a slice was created non-empty and appended-to, instead of empty with the required capacity.
|
||||
@@ -416,7 +416,7 @@ func updateMDMWindowsHostProfileStatusFromResponseDB(
|
||||
WHERE host_uuid = ? AND command_uuid IN (?)`
|
||||
|
||||
// grab command UUIDs to find matching entries using `getMatchingHostProfilesStmt`
|
||||
commandUUIDs := make([]string, len(payloads))
|
||||
commandUUIDs := make([]string, 0, len(payloads))
|
||||
// also grab the payloads keyed by the command uuid, so we can easily
|
||||
// grab the corresponding `Detail` and `Status` from the matching
|
||||
// command later on.
|
||||
|
||||
Reference in New Issue
Block a user