diff --git a/libvirt/utils_net.go b/libvirt/utils_net.go index c1fdfa20f..c1e2479d5 100644 --- a/libvirt/utils_net.go +++ b/libvirt/utils_net.go @@ -1,8 +1,8 @@ package libvirt import ( - "fmt" "crypto/rand" + "fmt" "net" ) diff --git a/libvirt/volume_image.go b/libvirt/volume_image.go index f8b417ea1..34259476a 100644 --- a/libvirt/volume_image.go +++ b/libvirt/volume_image.go @@ -69,7 +69,6 @@ func (i *localImage) Import(uploader func(io.Reader) error, vol libvirtxml.Stora } defer file.Close() - fi, err := file.Stat() if err != nil { return err diff --git a/tools.go b/tools.go index 0b6bd02a0..67979294f 100644 --- a/tools.go +++ b/tools.go @@ -1,3 +1,4 @@ +//go:build tools // +build tools package tools