happy linting

This commit is contained in:
Marvin Preuss 2022-01-07 20:21:00 +01:00
parent 601e1d1d7c
commit 75fa1f4f0a

View File

@ -247,7 +247,7 @@ func SyncWireguardDevice(cfg *Config, link netlink.Link, log logrus.FieldLogger)
// SyncLink synces link state with the config.
// It does not sync Wireguard settings, just makes sure the device is up and type wireguard.
func SyncLink(cfg *Config, iface string, uspace bool, log logrus.FieldLogger) (netlink.Link, error) {
func SyncLink(cfg *Config, iface string, uspace bool, log logrus.FieldLogger) (netlink.Link, error) { //nolint:ireturn
link, err := netlink.LinkByName(iface)
// nolint: nestif
if err != nil {