mirror of
https://github.com/helm/helm.git
synced 2026-04-15 21:59:50 -04:00
Apply suggestions from code review
Co-authored-by: George Jenkins <gvjenkins@gmail.com> Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
parent
9e17871afb
commit
326fdc3e5f
1 changed files with 2 additions and 2 deletions
|
|
@ -144,8 +144,8 @@ func (p *postRendererString) Set(val string) error {
|
|||
if val == "" {
|
||||
return nil
|
||||
}
|
||||
if p.options.binaryPath != "" && p.options.binaryPath != val {
|
||||
return errors.Errorf("cannot set post-renderer more than once, given: %s, previous: %s", val, p.options.binaryPath)
|
||||
if p.options.binaryPath != "" {
|
||||
return fmt.Errorf("cannot specify --post-renderer flag more than once")
|
||||
}
|
||||
p.options.binaryPath = val
|
||||
pr, err := postrender.NewExec(p.options.binaryPath, p.options.args...)
|
||||
|
|
|
|||
Loading…
Reference in a new issue