2
3import "fmt"
4
5func (p *Provider) RepositoryAuth(app string) (string, string, error) { 6 return "docker", p.Secret, nil
7}
8
4 "github.com/convox/convox/pkg/manifest"
5)
6
7func (p *Provider) ManifestValidate(m *manifest.Manifest) error {8 return nil
9}
2
3import "fmt"
4
5func (p *Provider) RepositoryAuth(app string) (string, string, error) { 6 return "docker", p.Secret, nil
7}
8
4 "github.com/convox/convox/pkg/manifest"
5)
6
7func (p *Provider) ManifestValidate(m *manifest.Manifest) error {8 return nil
9}
97 return nil
98}
99
100func (c *PodController) Update(prev, cur interface{}) error {101 return nil
102}
103
Unused parameters in functions or methods should be replaced with _
(underscore) or removed.
Functions or methods with unused parameters can be a symptom of unfinished
refactoring or a bug. If an unused parameter is present, it should be named _
(underscore) to avoid raising this issue and better readability.
func abc(unused string) {
fmt.Println("Not using any passed params.")
}
func abc(_ string) {
fmt.Println("Not using any passed params.")
}
func abc() {
fmt.Println("Not using any passed params.")
}