From c9388ff6e6885aef6ae2eb8ee14ce84fb0441002 Mon Sep 17 00:00:00 2001 From: Andreas Freimuth Date: Mon, 7 Feb 2022 13:44:50 +0100 Subject: [PATCH] fix(CheckpointCreate): fix devicePaths variable scope --- NetworkManager.go | 1 - 1 file changed, 1 deletion(-) diff --git a/NetworkManager.go b/NetworkManager.go index 053c1a3..fe84f54 100644 --- a/NetworkManager.go +++ b/NetworkManager.go @@ -396,7 +396,6 @@ func (nm *networkManager) CheckpointCreate(devices []Device, rollbackTimeout uin var devicePaths []dbus.ObjectPath if len(devices) > 0 { - var devicePaths []dbus.ObjectPath for _, device := range devices { devicePaths = append(devicePaths, device.GetPath()) }