Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Aug 26, 2020
1 parent 84fa21e commit db9ab35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions provider/pkg/provider/invoke_helm_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package provider

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
Expand Down Expand Up @@ -136,7 +135,7 @@ func (c *chart) fetch() error {
p.Username = c.opts.Username
p.Verify = c.opts.Verify

if c.opts.Version == "" && c.opts.Devel {
if len(c.opts.Version) == 0 && c.opts.Devel {
p.Version = ">0.0.0-0"
} else {
p.Version = c.opts.HelmFetchOpts.Version
Expand All @@ -145,7 +144,7 @@ func (c *chart) fetch() error {
if c.opts.HelmFetchOpts.Repo == "" {
splits := strings.Split(c.opts.Chart, "/")
if len(splits) != 2 {
return fmt.Errorf("chart repo not specified: %s", c.opts.Chart)
return pkgerrors.Errorf("chart repo not specified: %s", c.opts.Chart)
}
c.chartName = splits[1]
} else {
Expand Down

0 comments on commit db9ab35

Please sign in to comment.