mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
linter: enable unconvert linter
Detects unneccessary type conversions and helps in keeping the code base cleaner. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -731,7 +731,7 @@ EXPOSE 2004-2005/tcp`, ALPINE)
|
||||
linkAttr.Name = name
|
||||
m, err := net.ParseMAC(mac)
|
||||
Expect(err).To(BeNil())
|
||||
linkAttr.HardwareAddr = net.HardwareAddr(m)
|
||||
linkAttr.HardwareAddr = m
|
||||
eth := &netlink.Dummy{LinkAttrs: linkAttr}
|
||||
err = netlink.LinkAdd(eth)
|
||||
Expect(err).To(BeNil())
|
||||
|
Reference in New Issue
Block a user