From 6e890afc5f648fb757386626837eaf16c288ea20 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Tue, 20 Dec 2022 21:03:15 +0000 Subject: [PATCH] Minor linting fixes --- machine.go | 1 + routes.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/machine.go b/machine.go index bc01714..0dc7081 100644 --- a/machine.go +++ b/machine.go @@ -1053,6 +1053,7 @@ func (h *Headscale) EnableRoutes(machine *Machine, routeStrs ...string) error { } h.setLastStateChangeToNow() + return nil } diff --git a/routes.go b/routes.go index e4f74e6..a58be57 100644 --- a/routes.go +++ b/routes.go @@ -237,6 +237,7 @@ func (h *Headscale) handlePrimarySubnetFailover() error { } routesChanged = true + continue } } @@ -316,6 +317,7 @@ func (h *Headscale) handlePrimarySubnetFailover() error { if routesChanged { h.setLastStateChangeToNow() } + return nil }