From 0cc55864f09136d67f5beb8abc16e6f808131eff Mon Sep 17 00:00:00 2001 From: George Jenkins Date: Sun, 5 Jan 2025 08:32:02 -0800 Subject: [PATCH] cleanup moved errors Signed-off-by: George Jenkins --- pkg/chartutil/errors.go | 14 -------------- pkg/chartutil/errors_test.go | 20 -------------------- 2 files changed, 34 deletions(-) diff --git a/pkg/chartutil/errors.go b/pkg/chartutil/errors.go index 0a4046d2e..f654113f3 100644 --- a/pkg/chartutil/errors.go +++ b/pkg/chartutil/errors.go @@ -20,20 +20,6 @@ import ( "fmt" ) -// ErrNoTable indicates that a chart does not have a matching table. -type ErrNoTable struct { - Key string -} - -func (e ErrNoTable) Error() string { return fmt.Sprintf("%q is not a table", e.Key) } - -// ErrNoValue indicates that Values does not contain a key with a value -type ErrNoValue struct { - Key string -} - -func (e ErrNoValue) Error() string { return fmt.Sprintf("%q is not a value", e.Key) } - type ErrInvalidChartName struct { Name string } diff --git a/pkg/chartutil/errors_test.go b/pkg/chartutil/errors_test.go index 3f63e3733..421cc5464 100644 --- a/pkg/chartutil/errors_test.go +++ b/pkg/chartutil/errors_test.go @@ -15,23 +15,3 @@ limitations under the License. */ package chartutil - -import ( - "testing" -) - -func TestErrorNoTableDoesNotPanic(t *testing.T) { - x := "empty" - - y := ErrNoTable{x} - - t.Logf("error is: %s", y) -} - -func TestErrorNoValueDoesNotPanic(t *testing.T) { - x := "empty" - - y := ErrNoValue{x} - - t.Logf("error is: %s", y) -}