Skip to content

Commit ce73172

Browse files
committed
lint
1 parent f0597fc commit ce73172

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cli/docker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ func dockerCmd() *cobra.Command {
186186

187187
httpClient, err := xhttp.Client(log, flags.extraCertsPath)
188188
if err != nil {
189+
//nolint
189190
return xerrors.Errorf("http client: %w", err)
190191
}
191192

@@ -395,7 +396,7 @@ func dockerCmd() *cobra.Command {
395396
log.Debug(ctx, "killing container", slog.F("bootstrap_pid", bootstrapPID))
396397

397398
// The PID returned is the PID _outside_ the container...
398-
out, err := exec.Command("kill", "-TERM", strconv.Itoa(bootstrapPID)).CombinedOutput()
399+
out, err := exec.Command("kill", "-TERM", strconv.Itoa(bootstrapPID)).CombinedOutput() //nolint:gosec
399400
if err != nil {
400401
log.Error(ctx, "kill bootstrap process", slog.Error(err), slog.F("output", string(out)))
401402
return

dockerutil/container.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ func BootstrapContainer(ctx context.Context, client Client, conf BootstrapConfig
106106

107107
var err error
108108
for r, n := retry.New(time.Second, time.Second*2), 0; r.Wait(ctx) && n < 10; n++ {
109-
out, err := ExecContainer(ctx, client, ExecConfig{
109+
var out []byte
110+
out, err = ExecContainer(ctx, client, ExecConfig{
110111
ContainerID: conf.ContainerID,
111112
User: conf.User,
112113
Cmd: "/bin/sh",

0 commit comments

Comments
 (0)