From 26cc59911233190debece753b8e9e9b91ded4bc8 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Thu, 23 Nov 2017 15:40:17 +0100 Subject: No need to make a 0 len slice --- libvirt/resource_libvirt_domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvirt') diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go index 4dae7c29..b19f23f0 100644 --- a/libvirt/resource_libvirt_domain.go +++ b/libvirt/resource_libvirt_domain.go @@ -297,7 +297,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error } cmdlinesCount := d.Get("cmdline.#").(int) - cmdlineArgs := make([]string, 0) + var cmdlineArgs []string for i := 0; i < cmdlinesCount; i++ { cmdlineKey := fmt.Sprintf("cmdline.%d", i) cmdlineMap := d.Get(cmdlineKey).(map[string]interface{}) -- cgit v1.2.3