remove repeated params

pull/14103/head
klaases 2022-09-08 15:31:50 -07:00
parent 903d60f576
commit 44778427a6
1 changed files with 4 additions and 5 deletions

View File

@ -54,8 +54,8 @@ type NetworkInfo struct {
}
// NewAddon creates a new Addon
func NewAddon(assets []*BinAsset, enabled bool, addonName string, maintainer string, verifiedMaintainer string, docs string, images map[string]string, registries map[string]string) *Addon {
a := &Addon{
func NewAddon(assets []*BinAsset, enabled bool, addonName, maintainer, verifiedMaintainer, docs string, images, registries map[string]string) *Addon {
return &Addon{
Assets: assets,
enabled: enabled,
addonName: addonName,
@ -65,10 +65,9 @@ func NewAddon(assets []*BinAsset, enabled bool, addonName string, maintainer str
Images: images,
Registries: registries,
}
return a
}
// Name get the addon name
// Name gets the addon name
func (a *Addon) Name() string {
return a.addonName
}
@ -775,7 +774,7 @@ func mergeMaps(source, override map[string]string) map[string]string {
}
// filterKeySpace creates a map of the values in `target` where the keys are also in `keySpace`.
func filterKeySpace(keySpace map[string]string, target map[string]string) map[string]string {
func filterKeySpace(keySpace, target map[string]string) map[string]string {
result := make(map[string]string)
for name := range keySpace {
if value, ok := target[name]; ok {