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