Skip to content

Commit

Permalink
lxd/db/cluster: Fix linter error (prealloc).
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Dec 20, 2024
1 parent 68be07b commit 65893b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/db/cluster/identity_provider_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func GetDistinctAuthGroupNamesFromIDPGroupNames(ctx context.Context, tx *sql.Tx,
return nil, nil
}

var args []any
args := make([]any, 0, len(idpGroupNames))
for _, idpGroupName := range idpGroupNames {
args = append(args, idpGroupName)
}
Expand Down

0 comments on commit 65893b9

Please sign in to comment.