diff --git a/templates/terraform/custom_flatten/json_to_string_map.go.erb b/templates/terraform/custom_flatten/json_to_string_map.go.erb index 65b6c9e2056b..678b2a5c6de9 100644 --- a/templates/terraform/custom_flatten/json_to_string_map.go.erb +++ b/templates/terraform/custom_flatten/json_to_string_map.go.erb @@ -14,8 +14,8 @@ -%> func flatten<%= prefix -%><%= titlelize_property(property) -%>(v interface{}, d *schema.ResourceData) interface{} { if v == nil { - return v - } + return v + } kv := v.(map[string]interface{})