Skip to content

Commit 666f07e

Browse files
committed
just use := instead
1 parent a54058e commit 666f07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/templateversions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func (api *API) templateVersionDynamicParameters(rw http.ResponseWriter, r *http
300300
// Having the Terraform plan available for the evaluation engine is helpful
301301
// for populating values from data blocks, but isn't strictly required. If
302302
// we don't have a cached plan available, we just use an empty one instead.
303-
var plan json.RawMessage = []byte("{}")
303+
plan := json.RawMessage("{}")
304304
tf, err := api.Database.GetTemplateVersionTerraformValues(ctx, templateVersion.ID)
305305
if err == nil {
306306
plan = tf.CachedPlan

0 commit comments

Comments
 (0)