chore(gonf): fix errcheck and shadow errors
This commit is contained in:
parent
72be13c3e9
commit
8b9195e3e3
15 changed files with 65 additions and 80 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue