From 72be13c3e986aaee110b8f9abc78f5afcef22727 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 30 Apr 2024 08:34:26 +0200 Subject: chore(gonf): fix go vet and staticcheck errors --- pkg/values.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/values.go') diff --git a/pkg/values.go b/pkg/values.go index bb82787..25f31e4 100644 --- a/pkg/values.go +++ b/pkg/values.go @@ -68,13 +68,13 @@ type IntValue struct { } func (i IntValue) Bytes() []byte { - return []byte(string(i.value)) + return []byte(fmt.Sprint(i.value)) } func (i IntValue) Int() (int, error) { return i.value, nil } func (i IntValue) String() string { - return string(i.value) + return fmt.Sprint(i.value) } // ----- StringsListValue ------------------------------------------------------ -- cgit v1.2.3