Skip to content

Commit f466a37

Browse files
committed
review changes
Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
1 parent f6a724b commit f466a37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stackit/internal/services/iaas/imagev2/datasource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ func (d *imageDataV2Source) Read(ctx context.Context, req datasource.ReadRequest
429429
}
430430

431431
// Step 3: Apply additional filtering based on OS, distro, version, UEFI, secure boot, etc.
432-
filteredImages := make([]*iaas.Image, 0, len(matchedImages))
432+
var filteredImages []*iaas.Image
433433
for _, img := range matchedImages {
434434
if imageMatchesFilter(img, &filter) {
435435
filteredImages = append(filteredImages, img)

0 commit comments

Comments
 (0)