happy linting

master
Marvin Preuss 2 years ago
parent 601e1d1d7c
commit 75fa1f4f0a

@ -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 {

Loading…
Cancel
Save