Skip to content

Commit a31c770

Browse files
committed
enhancement(5235): removed nolint:gosex // legacy from step_unpack
1 parent 1f199a5 commit a31c770

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/pkg/agent/application/upgrade/step_unpack.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ func unzip(log *logger.Logger, archivePath, dataDir string, flavor string) (Unpa
178178
}
179179
}()
180180

181-
//nolint:gosec // legacy
182181
if _, err = io.Copy(f, rc); err != nil {
183182
return err
184183
}
@@ -424,7 +423,6 @@ func untar(log *logger.Logger, archivePath, dataDir string, flavor string) (Unpa
424423
return UnpackResult{}, errors.New(err, "TarInstaller: creating file "+abs, errors.TypeFilesystem, errors.M(errors.MetaKeyPath, abs))
425424
}
426425

427-
//nolint:gosec // legacy
428426
_, err = io.Copy(wf, tr)
429427
if closeErr := wf.Close(); closeErr != nil && err == nil {
430428
err = closeErr

0 commit comments

Comments
 (0)