Skip to content

Commit

Permalink
refactor: remove a variable (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed May 6, 2023
1 parent dd54a85 commit 5637a41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/installpackage/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ func (inst *InstallerImpl) InstallPackages(ctx context.Context, logE *logrus.Ent

func (inst *InstallerImpl) InstallPackage(ctx context.Context, logE *logrus.Entry, param *ParamInstallPackage) error { //nolint:cyclop,funlen
pkg := param.Pkg
checksums := param.Checksums
pkgInfo := pkg.PackageInfo
logE = logE.WithFields(logrus.Fields{
"package_name": pkg.Package.Name,
Expand Down Expand Up @@ -246,7 +245,7 @@ func (inst *InstallerImpl) InstallPackage(ctx context.Context, logE *logrus.Entr
Package: pkg,
Dest: pkgPath,
Asset: assetName,
Checksums: checksums,
Checksums: param.Checksums,
RequireChecksum: param.RequireChecksum,
Checksum: param.Checksum,
}); err != nil {
Expand Down

0 comments on commit 5637a41

Please sign in to comment.