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/variables.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pkg/variables.go') diff --git a/pkg/variables.go b/pkg/variables.go index bb3096d..4c9bb56 100644 --- a/pkg/variables.go +++ b/pkg/variables.go @@ -5,15 +5,12 @@ import ( "log/slog" ) -// ----- Globals --------------------------------------------------------------- var variables map[string]*VariablePromise -// ----- Init ------------------------------------------------------------------ func init() { variables = make(map[string]*VariablePromise) } -// ----- Public ---------------------------------------------------------------- func AppendVariable(name string, values ...string) *VariablePromise { if v, ok := variables[name]; ok { if l, ok := v.value.(*StringsListValue); ok { @@ -66,7 +63,6 @@ type VariablePromise struct { value Value } -// We want VariablePromise to satisfy the Value interface func (s VariablePromise) Bytes() []byte { return s.value.Bytes() } @@ -77,7 +73,6 @@ func (s VariablePromise) String() string { return s.value.String() } -// ----- Internal -------------------------------------------------------------- func getVariable(name string) string { if v, ok := variables[name]; ok { return v.value.String() -- cgit v1.2.3