From 8b9195e3e3506d576b39a23ca646c260dfacc808 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 1 May 2024 16:23:08 +0200 Subject: chore(gonf): fix errcheck and shadow errors --- pkg/values.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pkg/values.go') diff --git a/pkg/values.go b/pkg/values.go index 25f31e4..70fc9fe 100644 --- a/pkg/values.go +++ b/pkg/values.go @@ -47,7 +47,6 @@ func interfaceToTemplateValue(v any) Value { panic(fmt.Sprintf("interfaceToTemplateValue cannot take type %T as argument. Value was %#v.", v, v)) } -// ----- BytesValue ------------------------------------------------------------ type BytesValue struct { value []byte } @@ -62,7 +61,6 @@ func (b BytesValue) String() string { return string(b.value[:]) } -// ----- IntValue -------------------------------------------------------------- type IntValue struct { value int } @@ -77,7 +75,6 @@ func (i IntValue) String() string { return fmt.Sprint(i.value) } -// ----- StringsListValue ------------------------------------------------------ type StringsListValue struct { value []string } @@ -95,7 +92,6 @@ func (s StringsListValue) String() string { return strings.Join(s.value, "\n") } -// ----- StringValue ----------------------------------------------------------- type StringValue struct { value string } -- cgit v1.2.3