From af081e9fd3ff304d58893057d0a2902531fdc786 Mon Sep 17 00:00:00 2001 From: Mevan Samaratunga Date: Thu, 10 Mar 2022 10:22:21 -0500 Subject: [PATCH] fixed lint errors --- api.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api.go b/api.go index 323e3e7e..ffa1aeb8 100644 --- a/api.go +++ b/api.go @@ -600,7 +600,6 @@ func (h *Headscale) handleAuthKey( machine.NodeKey = nodeKey machine.AuthKeyID = uint(pak.ID) h.RefreshMachine(machine, registerRequest.Expiry) - } else { now := time.Now().UTC() @@ -614,7 +613,7 @@ func (h *Headscale) handleAuthKey( LastSeen: &now, AuthKeyID: uint(pak.ID), } - + machine, err = h.RegisterMachine( machineToRegister, ) @@ -629,9 +628,9 @@ func (h *Headscale) handleAuthKey( http.StatusInternalServerError, "could not register machine", ) - + return - } + } } h.UsePreAuthKey(pak)