Skip to content

Commit ae63e2c

Browse files
Merge pull request #25876 from kolyshkin/golangci-v2-fup1
ci: fix two issues, remove unused exceptions
2 parents 2a9b149 + 8690b20 commit ae63e2c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ linters:
6969
generated: strict
7070
presets:
7171
- comments
72-
- common-false-positives
73-
- legacy
7472
- std-error-handling
7573
rules:
7674
- linters:

cmd/podman/pods/create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,17 @@ func create(cmd *cobra.Command, args []string) error {
233233
}
234234
}
235235
sort.Ints(vals)
236+
loop:
236237
for ind, core := range vals {
237238
switch {
238239
case core > int(cpuSet):
239240
if copy == "" {
240241
copy = "0-" + strconv.Itoa(int(cpuSet))
241242
infraOptions.CPUSetCPUs = copy
242-
break
243243
} else {
244244
infraOptions.CPUSetCPUs = copy
245-
break
246245
}
246+
break loop
247247
case ind != 0:
248248
copy += "," + strconv.Itoa(core)
249249
default:
@@ -252,6 +252,7 @@ func create(cmd *cobra.Command, args []string) error {
252252
}
253253
createOptions.Cpus = infraOptions.CPUS
254254
createOptions.CpusetCpus = infraOptions.CPUSetCPUs
255+
255256
podSpec := specgen.NewPodSpecGenerator()
256257
podSpec, err = entities.ToPodSpecGen(*podSpec, &createOptions)
257258
if err != nil {

pkg/bindings/containers/term_windows.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func notifyWinChange(ctx context.Context, winChange chan os.Signal, stdin *os.Fi
4848
case <-ctx.Done():
4949
return
5050
case <-timer.C:
51-
break
5251
}
5352

5453
w, h, err := term.GetSize(int(stdout.Fd()))

0 commit comments

Comments
 (0)