clean up error imports for pusher pkg

Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
pull/12063/head
James Sheppard 2 years ago
parent 703f1d72b1
commit a70ce5e6ec

@ -48,7 +48,7 @@ func (pusher *OCIPusher) push(chartRef, href string) error {
stat, err := os.Stat(chartRef)
if err != nil {
if os.IsNotExist(err) {
return errors.Errorf("%s: no such file", chartRef)
return fmt.Errorf("%s: no such file", chartRef)
}
return err
}

@ -17,7 +17,7 @@ limitations under the License.
package pusher
import (
"github.com/pkg/errors"
"fmt"
"helm.sh/helm/v3/pkg/cli"
"helm.sh/helm/v3/pkg/registry"
@ -99,7 +99,7 @@ func (p Providers) ByScheme(scheme string) (Pusher, error) {
return pp.New()
}
}
return nil, errors.Errorf("scheme %q not supported", scheme)
return nil, fmt.Errorf("scheme %q not supported", scheme)
}
var ociProvider = Provider{

Loading…
Cancel
Save