Skip to content

Commit

Permalink
AddPackage -> Add
Browse files Browse the repository at this point in the history
  • Loading branch information
saniales committed Jul 28, 2017
1 parent 7012556 commit 9072ea9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cores/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ func (cd CoreDependency) String() string {
return strings.TrimSpace(fmt.Sprintln(cd.ToolName, " v.", cd.Release.Version))
}

// AddPackage adds a package to a context from an indexPackage.
// Add adds a package to a context from an indexPackage.
//
// NOTE: If the package is already in the context, it is overwritten!
func (sc *StatusContext) AddPackage(indexPackage *indexPackage) {
func (sc *StatusContext) Add(indexPackage *indexPackage) {
sc.Packages[indexPackage.Name] = indexPackage.extractPackage()
}

Expand Down Expand Up @@ -102,7 +102,7 @@ func (index Index) CreateStatusContext() (StatusContext, error) {
Packages: make(map[string]*Package, len(index.Packages)),
}
for _, packageManager := range index.Packages {
packages.AddPackage(packageManager)
packages.Add(packageManager)
}
return packages, nil
}
Expand Down

0 comments on commit 9072ea9

Please sign in to comment.