From 90e8e1faf929f5566e60ad738ef9ef6e3101cb6b Mon Sep 17 00:00:00 2001 From: Casey Callendrello Date: Wed, 26 Jan 2022 17:57:13 +0100 Subject: [PATCH] Fix host-device gofmt Signed-off-by: Casey Callendrello --- plugins/main/host-device/host-device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/main/host-device/host-device.go b/plugins/main/host-device/host-device.go index 6d51204d..06cdf898 100644 --- a/plugins/main/host-device/host-device.go +++ b/plugins/main/host-device/host-device.go @@ -270,7 +270,7 @@ func moveLinkOut(containerNs ns.NetNS, ifName string) error { // function can be retried. Also bring the device back up, unless it was already down before. if err != nil { _ = netlink.LinkSetName(dev, ifName) - if dev.Attrs().Flags & net.FlagUp == net.FlagUp { + if dev.Attrs().Flags&net.FlagUp == net.FlagUp { _ = netlink.LinkSetUp(dev) } }