Skip to content

Commit 3aad482

Browse files
fixed linter issues
1 parent c1a6db9 commit 3aad482

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/setup-go@v6
3131
with:
3232
check-latest: true
33-
go-version: 1.25.5
33+
go-version: 1.25.7
3434
- name: Run golangci-lint
3535
uses: golangci/golangci-lint-action@v9
3636
with:

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v6
3333
with:
3434
check-latest: true
35-
go-version: 1.25.5
35+
go-version: 1.25.7
3636
- name: Build all binaries
3737
run: make build-all
3838
code_coverage:
@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/setup-go@v6
6666
with:
6767
check-latest: true
68-
go-version: 1.25.5
68+
go-version: 1.25.7
6969
- name: Run tests and generate coverage report
7070
run: make build/cover.out
7171
- name: Archive code coverage results

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-go@v6
3333
with:
3434
check-latest: true
35-
go-version: 1.25.5
35+
go-version: 1.25.7
3636
- name: Initialize CodeQL
3737
uses: github/codeql-action/init@v4
3838
with:

controllers/managedcloudprofile_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
106106
Parallel: 1,
107107
}, updates.Source.OCI.Insecure)
108108
if err != nil {
109-
return ctrl.Result{}, fmt.Errorf("failed to initialize oci source for garbage collection: %w", err)
109+
return ctrl.Result{}, fmt.Errorf("failed to initialize OCI source for garbage collection: %w", err)
110110
}
111111
source = oci
112112
default:
@@ -163,14 +163,14 @@ func (r *Reconciler) deleteVersion(ctx context.Context, cloudProfileName, imageN
163163
if cfg.MachineImages[i].Name != imageName {
164164
continue
165165
}
166-
new := make([]providercfg.MachineImageVersion, 0, len(cfg.MachineImages[i].Versions))
166+
filtered := make([]providercfg.MachineImageVersion, 0, len(cfg.MachineImages[i].Versions))
167167
for _, mv := range cfg.MachineImages[i].Versions {
168168
if strings.HasSuffix(mv.Image, ":"+version) {
169169
continue
170170
}
171-
new = append(new, mv)
171+
filtered = append(filtered, mv)
172172
}
173-
cfg.MachineImages[i].Versions = new
173+
cfg.MachineImages[i].Versions = filtered
174174
}
175175
raw, err := json.Marshal(cfg)
176176
if err == nil {

0 commit comments

Comments
 (0)