Skip to content

Commit

Permalink
Merge pull request #262 from AkashKumar7902/remove-unused-arg
Browse files Browse the repository at this point in the history
remove unused arg from func
  • Loading branch information
Peefy authored Feb 2, 2024
2 parents 7848690 + 7ac7e82 commit bd65b2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ func (c *KpmClient) dependencyExists(dep *pkg.Dependency, lockDeps *pkg.Dependen
}

lockDep, present := lockDeps.Deps[dep.Name]
// Check if the sum of this dependency in kcl.mod.lock has been chanaged.
// Check if the sum of this dependency in kcl.mod.lock has been changed.
if !c.noSumCheck && present {
// If the dependent package does not exist locally, then method 'check' will return false.
if c.noSumCheck || check(lockDep, filepath.Join(c.homePath, dep.FullName)) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/package/modfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ type Dependencies struct {

// ToDepMetadata will transform the dependencies into metadata.
// And check whether the dependency name conflicts.
func (deps *Dependencies) ToDepMetadata(pkgHome string) (*Dependencies, error) {
func (deps *Dependencies) ToDepMetadata() (*Dependencies, error) {
depMetadata := Dependencies{
Deps: make(map[string]Dependency),
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/package/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type KclPkg struct {
}

func (p *KclPkg) GetDepsMetadata() (*Dependencies, error) {
return p.Dependencies.ToDepMetadata(p.HomePath)
return p.Dependencies.ToDepMetadata()
}

func NewKclPkg(opts *opt.InitOptions) KclPkg {
Expand Down

0 comments on commit bd65b2a

Please sign in to comment.