From 7888fdee58398acab51ad91fc7de10820005149c Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 22 Feb 2023 14:57:29 +0100 Subject: [PATCH] fix lint issue should drop = nil from declaration of var n; it is the zero value Signed-off-by: CrazyMax --- bake/hcl_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bake/hcl_test.go b/bake/hcl_test.go index 56d705ad..ecb0d722 100644 --- a/bake/hcl_test.go +++ b/bake/hcl_test.go @@ -946,7 +946,7 @@ func TestVarUnsupportedType(t *testing.T) { } func ptrstr(s interface{}) *string { - var n *string = nil + var n *string if reflect.ValueOf(s).Kind() == reflect.String { ss := s.(string) n = &ss